joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48fbc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x1c], 0
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0x10]
mov esi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 1
jne 0x48fc1d
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], 1
cmp ecx, 0x110
jne 0x48fc32
lea eax, [ebp - 8]
push eax
push ebx
push edi
push ecx
mov ecx, esi
call fcn.00449d10
cmp dword [ebp - 8], 0
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
jne 0x48fdd3
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 2
jne 0x48fc47
lea eax, [ebp - 8]
push eax
push ebx
push edi
push ecx
mov ecx, esi
call fcn.00449cf0
jmp 0x48fc0e
cmp ecx, 0x111
jne 0x48fcec
movzx eax, di
cmp word [ebp - 0x14], ax
mov edx, eax
mov dword [ebp - 0x10], edx
mov eax, edi
jne 0x48fcc1
lea ecx, [ebp - 8]
shr eax, 0x10
push ecx
push ebx
push 1
push eax
mov ecx, esi
mov dword [ebp - 0x14], eax
call fcn.00418950
cmp dword [ebp - 8], 0
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
jne 0x48fdd3
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x10]
movzx eax, ax
mov dword [ebp - 0x10], 0x9c68
movzx eax, ax
cmp word [ebp - 0x10], dx
jne 0x48fcec
lea ecx, [ebp - 8]
mov dword [ebp - 8], 1
push ecx
push ebx
push 0x9c68
push eax
mov ecx, esi
call fcn.00449cc0
jmp 0x48fc0e
mov dword [ebp - 0x10], 2
shr eax, 0x10
cmp word [ebp - 0x10], dx
jne 0x48fc93
lea ecx, [ebp - 8]
mov dword [ebp - 8], 1
push ecx
push ebx
push 2
push eax
mov ecx, esi
call fcn.00418950
jmp 0x48fc0e
lea edx, [esi + 0x20]
cmp ecx, 5
jne 0x48fda9
xor eax, eax
test edx, edx
cmove esi, eax
cmp byte [edx + 0x1c], al
je 0x48fd7b
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
je 0x48fd7b
cmp edi, 2
jne 0x48fd4b
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esi + 0x20]
call fcn.0043f1b0
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
lea eax, [edi - 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 0x18
test edi, edi
jne 0x48fd7b
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea ecx, [esi + 0x20]
call fcn.0043f1b0
mov eax, dword [ebp - 0xc]
mov dword [eax], edi
lea eax, [edi + 1]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 0x18
cmp edi, 1
je 0x48fdca
lea ecx, [esi + 0x20]
call fcn.0043f1b0
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword [eax], 0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 0x18
cmp ecx, 0x24
jne 0x48fc1d
cmp dword [edx + 0x14], 0xffffffff
je 0x48fdca
cmp dword [edx + 0x18], 0xffffffff
je 0x48fdca
mov ecx, dword [edx + 0x14]
mov edx, dword [edx + 0x18]
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x1c], edx
mov eax, dword [ebp - 0xc]
mov dword [eax], 0
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 0x18
Function at 0x490ba0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0xc]
push 0x2c
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x34]
push 0
push eax
call fcn.004aa220
add esp, 0xc
mov dword [ebp - 8], 0x2c
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x34]
push eax
push 0
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x490d48
cmp dword [ebp - 0x34], 0x2c
jne 0x490d48
mov edi, dword [ebp - 0x48]
push ebx
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, eax
mov eax, dword [ebp - 0x2c]
sub eax, 2
je 0x490c25
sub eax, 1
jne 0x490c3b
and ebx, 0xdfffffff
or ebx, 0x1000000
jmp 0x490c31
and ebx, 0xfeffffff
or ebx, 0x20000000
push ebx
push 0xfffffffffffffff0
push edi
call dword [sym.imp.USER32.dll_SetWindowLongW]
lea eax, [ebp - 0x44]
shr ebx, 0x12
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 0x38]
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x44]
and bl, 1
je 0x490c68
mov ecx, esi
sub ecx, eax
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
cmp eax, ecx
jge 0x490c74
mov eax, dword [ebp - 0x44]
sub esi, eax
add esi, dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
test bl, bl
je 0x490c89
mov eax, dword [ebp - 0xc]
mov ecx, edx
mov ebx, dword [ebp - 0x40]
sub ecx, ebx
mov esi, dword [ebp - 0x14]
sub eax, esi
cmp eax, ecx
jge 0x490c96
jmp 0x490c8f
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x40]
sub edx, ebx
add edx, esi
mov dword [ebp - 0xc], edx
push 0x4c
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4d
mov ebx, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4e
mov dword [ebp - 0x48], eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4c
mov esi, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4f
lea ecx, [esi + eax]
mov dword [ebp - 0x4c], ecx
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x4d
mov esi, eax
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [ebp - 0xc]
add eax, esi
cmp ecx, eax
jle 0x490ced
sub eax, ecx
push eax
push 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x48]
cmp ecx, eax
jge 0x490d06
sub eax, ecx
push eax
push 0
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x4c]
cmp ecx, eax
jle 0x490d1f
push 0
sub eax, ecx
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
mov eax, dword [ebp - 0x18]
cmp eax, ebx
jge 0x490d35
push 0
sub ebx, eax
lea eax, [ebp - 0x18]
push ebx
push eax
call dword [sym.imp.USER32.dll_OffsetRect]
lea eax, [ebp - 0x34]
mov dword [ebp - 0x2c], 0
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowPlacement]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
Function at 0x499750
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [0x52e8b8]
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x238], ecx
test esi, esi
jne 0x499910
mov dword [ebp - 0x230], 0x4f785c
mov dword [ebp - 0x22c], 0x4999a0
mov dword [ebp - 0x228], 0x4f7868
mov dword [ebp - 0x224], 0x499d70
mov dword [ebp - 0x220], 0x4f7874
mov dword [ebp - 0x21c], 0x499950
cmp dword [0x52e8b4], esi
jne 0x499904
push 0x104
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x4998ee
push edi
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.004be1bd
push 0x4f7884
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.004be217
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x499846
push 0x4f785c
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x49989a
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.004be1bd
push 0x4f788c
lea eax, [ebp - 0x110]
push 0x10c
push eax
call fcn.004be217
add esp, 0x18
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4998ed
push 0x4f785c
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x4998e6
xor esi, esi
lea eax, [ebp - 0x230]
push dword [eax + esi*8]
push edi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp + esi*8 - 0x22c], eax
test eax, eax
je 0x4998e6
inc esi
lea eax, [ebp - 0x230]
cmp esi, 3
jl 0x4998a2
mov eax, dword [ebp - 0x22c]
mov dword [0x517b60], eax
mov eax, dword [ebp - 0x224]
mov dword [0x517b68], eax
mov eax, dword [ebp - 0x21c]
mov dword [0x517b70], eax
jmp 0x4998ed
push edi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
pop edi
mov eax, dword [ebp - 0x234]
mov ecx, dword [ebp - 0x238]
mov dword [0x52e8b4], 1
mov esi, dword [0x517b68]
mov dword [0x52e8b8], esi
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push ecx
push dword [ebp + 0x14]
mov ecx, esi
push eax
push dword [ebp + 0xc]
push ebx
call dword [0x4dc8a4]
call esi
mov esi, eax
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x499fc0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x1c]
lea eax, [ebp - 0x407]
push edi
mov edi, dword [ebp + 8]
push 0x400
push 0
push eax
mov dword [ebp - 0x820], edi
mov dword [ebp - 0x814], esi
mov dword [ebp - 0x818], 0
mov byte [ebp - 0x408], 0
call fcn.004aa220
push 0x400
lea eax, [ebp - 0x80b]
mov byte [ebp - 0x80c], 0
push 0
push eax
call fcn.004aa220
push 0x400
push edi
lea eax, [ebp - 0x408]
push 0x401
lea ebx, [ebp - 0x80c]
mov dword [ebp - 0x81c], eax
push eax
mov dword [ebp - 0x810], ebx
call fcn.004be17c
add esp, 0x28
push dword [ebp - 0x820]
mov edi, esi
mov dword [esi], 0
mov byte [ebx], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x49a1a6
cmp word [ebx + 8], 2
jne 0x49a0b6
cmp word [ebx + 0xa], 4
jne 0x49a0b6
mov esi, dword [ebx + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x49a0b6
nop word [eax + eax]
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0049a1f0
mov dword [edi], eax
test eax, eax
je 0x49a19f
add esi, 4
lea edi, [eax + 0x1c]
mov eax, dword [esi]
test eax, eax
jne 0x49a090
push 0x400
push dword [ebx]
mov ebx, dword [ebp - 0x810]
push 0x401
push ebx
call fcn.004be17c
mov eax, dword [ebp - 0x814]
xor esi, esi
add esp, 0x10
cmp dword [eax], esi
jne 0x49a154
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49a0e2
sub ecx, edx
je case.0x49a1b6.11003
mov edi, dword [ebp - 0x81c]
mov ecx, ebx
mov eax, edi
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x49a117
test dl, dl
je 0x49a113
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x49a117
add eax, 2
add ecx, 2
test dl, dl
jne 0x49a0f7
xor eax, eax
jmp 0x49a11c
sbb eax, eax
or eax, 1
test eax, eax
je case.0x49a1b6.11003
mov esi, dword [ebp - 0x818]
inc esi
mov dword [ebp - 0x818], esi
cmp esi, 0x10
je case.0x49a1b6.11003
mov esi, dword [ebp - 0x814]
mov eax, edi
mov dword [ebp - 0x81c], ebx
mov ebx, eax
mov dword [ebp - 0x810], ebx
jmp 0x49a052
mov esi, 0x2afb
jmp 0x49a1c9
cmp dword [ebp + 0x18], esi
je 0x49a1c9
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x49a160
sub ecx, edx
lea ebx, [ecx + 1]
push ebx
push 1
call fcn.004b5176
mov edi, eax
add esp, 8
test edi, edi
je 0x49a18d
push dword [ebp - 0x810]
push ebx
push edi
call fcn.004be1bd
add esp, 0xc
mov ecx, dword [ebp - 0x814]
mov eax, dword [ecx]
mov dword [eax + 0x14], edi
mov eax, dword [ecx]
cmp dword [eax + 0x14], esi
jne 0x49a1c9
mov esi, 8
jmp 0x49a1c9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd507
cmp eax, 3
ja case.0x49a1b6.11001
jmp dword [eax*4 + 0x49a1e0]
mov esi, 0x2afa
jmp 0x49a1c9
mov esi, 0x2af9
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 0x18
Function at 0x49bdd0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [esi]
test eax, eax
je 0x49be6e
lea ecx, [ebp - 8]
mov dword [ebp - 8], 0
push ecx
push 0
push 0
push 0
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x49be93
push dword [ebp - 8]
call fcn.004a7559
add esp, 4
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 8]
push ecx
push eax
push 0
push 0
push ebx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
mov esi, dword [ebp - 0xc]
push esi
call fcn.004a29e0
mov ecx, dword [edi]
add esp, 8
mov ebx, eax
test ecx, ecx
je 0x49be4e
call fcn.004a2a20
push esi
mov dword [edi], ebx
call fcn.004a71f6
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x49be93
push edi
push ebx
push eax
call fcn.0049b6b0
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 8

Function at 0x49beb0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9ecd
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x517b80]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx]
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x49bf0c
lea ecx, [ebp + 0x10]
push ecx
push ebx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 4]
test eax, eax
je 0x49bf9a
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0
push ecx
push edx
push eax
call fcn.0049b6b0
mov esi, dword [ebp - 0x10]
add esp, 0xc
test al, al
je 0x49bf70
test esi, esi
je 0x49bf5d
mov ecx, esi
call fcn.00477430
mov ecx, esi
mov edi, eax
call fcn.004a28d0
push edi
push eax
push ebx
call fcn.004aaaa0
add esp, 0xc
mov bl, 1
jmp 0x49bf72
xor edi, edi
xor eax, eax
push edi
push eax
push ebx
call fcn.004aaaa0
add esp, 0xc
mov bl, 1
jmp 0x49bf72
xor bl, bl
mov dword [ebp - 4], 2
test esi, esi
je 0x49bf84
mov ecx, esi
call fcn.004a2a20
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 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x49c8e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x49c92e
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi]
test ecx, ecx
je 0x49c8ff
call fcn.00477430
mov ebx, eax
jmp 0x49c901
xor ebx, ebx
mov ecx, dword [edi]
test ecx, ecx
je 0x49c90e
call fcn.004a28d0
jmp 0x49c910
xor eax, eax
push ebx
push eax
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
test eax, eax
pop esi
sete al
pop ebx
pop ebp
ret 0xc
cmp dword [esi + 4], 0
je 0x49c96e
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi]
test ecx, ecx
je 0x49c946
call fcn.00477430
mov ebx, eax
jmp 0x49c948
xor ebx, ebx
mov ecx, dword [edi]
test ecx, ecx
je 0x49c955
call fcn.004a28d0
jmp 0x49c957
xor eax, eax
push ebx
push eax
push dword [ebp + 8]
push dword [esi + 4]
call fcn.0049b7d0
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 0xc

Function at 0x49c980
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov ecx, dword [eax]
test ecx, ecx
je 0x49c9a8
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete al
pop ebp
ret
mov eax, dword [eax + 4]
test eax, eax
je 0x49c9c1
push 4
lea ecx, [ebp + 0x10]
push ecx
push edx
push eax
call fcn.0049b7d0
add esp, 0x10
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x49f290
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x28]
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
mov eax, dword [ebp - 0xc]
mov edi, dword [esi + 0x3c8]
neg eax
cdq
mov ebx, eax
mov eax, edx
and eax, dword [esi + 0x25c]
and ebx, dword [esi + 0x258]
mov dword [ebp - 0x2c], eax
cmp dword [esi + 0x3cc], eax
jb 0x49f2ff
ja 0x49f2dc
cmp edi, ebx
jb 0x49f2ff
sub edi, ebx
push edi
push ebx
push eax
push 4
push dword [esi + 0x3c4]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [esi + 0x558], eax
test eax, eax
jne 0x49f312
mov dword [esi + 0x55c], eax
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x258]
sub eax, ebx
add eax, dword [esi + 0x258]
sub ecx, ebx
mov dword [esi + 0x55c], eax
mov eax, dword [esi + 0x25c]
sbb eax, dword [ebp - 0x2c]
xor edx, edx
cmp edx, eax
jb 0x49f2ff
ja 0x49f33d
cmp edi, ecx
jb 0x49f2ff
lfence
sub ebx, dword [esi + 0x258]
lea ecx, [esi + 0x4f0]
add edi, ebx
push edi
push dword [esi + 0x55c]
call fcn.00482860
mov ecx, dword [esi + 0x260]
xor edx, edx
sub ecx, dword [esi + 0x258]
mov eax, dword [esi + 0x264]
sbb eax, dword [esi + 0x25c]
mov dword [ebp - 0x2c], edx
cmp edx, eax
jb 0x49f2ff
ja 0x49f385
cmp edi, ecx
jb 0x49f2ff
lfence
mov ecx, dword [esi + 0x258]
mov eax, ecx
mov edx, dword [esi + 0x260]
sub eax, edx
sub edx, ecx
add eax, edi
add edx, dword [esi + 0x55c]
lea ecx, [esi + 0x4b8]
push eax
push edx
call fcn.0041d300
mov edx, dword [esi + 0x268]
mov ecx, edx
mov ebx, dword [esi + 0x258]
sub ecx, ebx
mov eax, dword [esi + 0x26c]
sbb eax, dword [esi + 0x25c]
cmp dword [ebp - 0x2c], eax
jb 0x49f2ff
ja 0x49f3de
cmp edi, ecx
jb 0x49f2ff
mov eax, dword [esi + 0x55c]
lea ecx, [esi + 0x524]
sub eax, ebx
add eax, edx
push eax
call fcn.00450340
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
Function at 0x4a48f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da947
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x517b80]
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 esi, ecx
mov dword [ebp - 0xb0], esi
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x4a4ace
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
push 0x7f89
push 0
movlpd qword [ebp - 0xa0], xmm0
movlpd qword [ebp - 0x98], xmm0
mov dword [ebp - 0xac], 0x30
mov dword [ebp - 0xa8], 3
mov dword [ebp - 0xa4], 0x4a45f0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x90], eax
lea eax, [ebp - 0xac]
push eax
mov dword [ebp - 0x8c], 0x10
mov dword [ebp - 0x84], 0x4f97ec
mov dword [ebp - 0x88], 0
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
push 0
push 0x31
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x7c]
mov dword [esi + 4], eax
push ecx
push 0x5c
push eax
call dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [ebp - 0x7c]
mov byte [ebp - 0x67], 1
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
mov byte [esi], 0
test edi, edi
je 0x4a49ed
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x4a49ed
cmp dword [ecx], edi
je 0x4a4a61
lea ecx, [esi + 0x10]
call fcn.00402fd0
push 0xc
call fcn.004a71b8
mov esi, eax
add esp, 4
mov dword [ebp - 0xb4], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4a4a45
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
push edi
mov dword [esi + 4], 0
mov dword [esi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esi], eax
test eax, eax
jne 0x4a4a47
test edi, edi
jne 0x4a4aec
jmp 0x4a4a47
xor esi, esi
mov edi, dword [ebp - 0xb0]
mov dword [ebp - 4], 0xffffffff
mov dword [edi + 0x10], esi
test esi, esi
je 0x4a4af6
jmp 0x4a4a63
mov edi, esi
push 0
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
push 2
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetParent]
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push ebx
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
push edi
push esi
push 0
push eax
mov eax, dword [ebp - 0x14]
sub eax, edx
push eax
mov eax, dword [ebp - 0x18]
sub eax, ecx
push eax
push edx
push ecx
push 0x50000000
push 0x4e454c
push 0x4f97ec
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
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.004a71aa
mov esp, ebp
pop ebp
ret 8
push 0x8007000e
call fcn.004a8a90
push 0x8007000e
call fcn.004a8a90
int3
Function at 0x4a4b10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
push 0x52edcc
xor edi, edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [0x52ed58], edi
je 0x4a4ba9
cmp dword [0x52ed64], edi
je 0x4a4ba9
push esi
mov esi, dword [0x52ed6c]
mov ecx, esi
push 0x12237
call dword [0x4dc8a4]
call esi
mov esi, dword [0x52ed58]
mov ecx, esi
push edi
push edi
push ebx
call dword [0x4dc8a4]
call esi
cmp dword [0x52edb0], 0
mov edi, eax
je 0x4a4ba8
push 0x400
lea eax, [ebp - 0x804]
push eax
push 0x4f9b90
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
mov esi, dword [0x52edb0]
lea eax, [ebp - 0x804]
push eax
push ebx
mov ecx, esi
call dword [0x4dc8a4]
call esi
pop esi
push 0x52edcc
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
test edi, edi
pop edi
setne al
xor ecx, ebp
pop ebx
call fcn.004a71aa
mov esp, ebp
pop ebp
ret