joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e444
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a274
xor eax, eax
push ebp
push 0x40e506
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040ac80
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ae30
mov eax, dword [ebx]
call fcn.0040e2ec
test al, al
jne 0x40e4e1
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040ac80
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ae30
mov eax, dword [ebx]
call fcn.0040e2ec
test al, al
jne 0x40e4e1
mov eax, ebx
call fcn.0040a180
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e50d
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a1e0
lea eax, [ebp - 4]
call fcn.0040a180
pop eax
jmp eax

Function at 0x40ffdc
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret
Function at 0x4208c4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x42091d
test eax, edx
je 0x420920
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x4208db
movzx eax, word [eax]
sub eax, ecx
jmp 0x420902
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x420903
add ecx, 4
js 0x4208f3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x420900
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x420902
xor eax, eax
ret
test eax, eax
je 0x42092c
test edx, edx
jne 0x4208cc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x421b8c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040abe4
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x421bf6
test ah, 4
je 0x421bef
test bl, bl
jne 0x421bb4
mov al, 1
jmp 0x421c1d
test al, 0x10
je 0x421bbc
xor eax, eax
jmp 0x421c1d
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x421be0
push eax
call sub.kernel32.dll_CloseHandle
mov al, 1
jmp 0x421c1d
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x421c1d
test al, 0x10
sete al
jmp 0x421c1d
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x421c17
cmp ebx, 3
je 0x421c17
cmp ebx, 0x7b
je 0x421c17
mov eax, esi
call fcn.00421b4c
test al, al
jne 0x421c1b
xor eax, eax
jmp 0x421c1d
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x421c24
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040abe4
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x421cc2
test esi, 0x400
jne 0x421c59
test esi, 0x10
setne bl
jmp 0x421cc2
cmp byte [esp], 0
je 0x421c8d
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x421cc2
push eax
call sub.kernel32.dll_CloseHandle
test esi, 0x10
setne bl
jmp 0x421cc2
test esi, 0x10
je 0x421c99
mov bl, 1
jmp 0x421cc2
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW
cmp eax, 0xffffffff
je 0x421cc0
push eax
call sub.kernel32.dll_CloseHandle
xor ebx, ebx
jmp 0x421cc2
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x426488
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4264c1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a318
jmp 0x4264ca
mov eax, ebx
mov edx, esi
call fcn.0040a570
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4264d4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x4264f8
movzx eax, word [esp]
jmp 0x4264fa
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x427c18
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x427d3f
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00427a20
mov esi, eax
mov eax, dword [0x55a1a0]
cmp byte [eax], 0
je 0x427ce5
mov eax, dword [0x559fcc]
call fcn.00407bb8
call fcn.004070dc
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x427be8]
call fcn.0040ce30
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x427d58
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x427d21
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x559f84]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x55e634]
call fcn.0040d3c4
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427d46
lea eax, [ebp - 4]
mov edx, dword [0x427be8]
call fcn.0040cf54
pop eax
jmp eax

Function at 0x42a28c
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0040a664
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040ffbc
mov edi, eax
cmp edi, 0x104
jbe 0x42a237
mov eax, edi
add eax, eax
call fcn.00406f68
mov esi, eax
jmp 0x42a239
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040ffbc
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42a272
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x42a25c
mov eax, esp
cmp esi, eax
je 0x42a27f
mov eax, esi
call fcn.00406f84
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x42a2b8
cmp bl, 0
je 0x42a2b4
cmp bl, 0x41
jl 0x42a2af
cmp bl, 0x5a
jg 0x42a2af
or bl, 0x20
xor al, bl
inc esi
jmp 0x42a293
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42a1f8
Function at 0x42abb0
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040ac80
add esp, 0x800
pop ebx
ret

Function at 0x42b140
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.0040a180
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040abe4
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x42b185
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040a318
jmp 0x42b19e
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040ad58
push ebx
mov eax, dword [esi]
call fcn.0040abe4
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42d44c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42d46c
sub eax, 4
mov eax, dword [eax]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42d486
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42d481
sub eax, 4
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x42d48b
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x42d4f9
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42d542
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42d4b7
inc dword [ebp - 0xc]
jmp 0x42d4cf
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42d4cf
cmp dword [ebp - 0xc], 0
jle 0x42d4cf
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x42d4f1
xor eax, eax
jmp 0x42d4ed
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42d4ec
mov eax, esi
jmp 0x42d545
inc eax
cmp eax, ecx
jle 0x42d4d9
inc esi
cmp esi, dword [ebp - 8]
jl 0x42d4a3
jmp 0x42d542
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42d542
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42d51a
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42d53c
xor eax, eax
jmp 0x42d538
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42d537
mov eax, esi
jmp 0x42d545
inc eax
cmp eax, ecx
jle 0x42d524
inc esi
cmp esi, dword [ebp - 8]
jl 0x42d502
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42d734
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x42d753
sub eax, 4
mov eax, dword [eax]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42d763
sub eax, 4
mov eax, dword [eax]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x42d885
test ebx, ebx
jl 0x42d885
test esi, esi
jle 0x42d885
mov eax, dword [ebp - 8]
call fcn.0040abe4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040abe4
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x42d822
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x42d885
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42d807
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42d7d6
inc dword [ebp - 0x14]
jmp 0x42d7e6
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x42d7e6
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x42d7f1
or eax, 0xffffffff
jmp 0x42d807
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42d804
inc eax
jmp 0x42d807
or eax, 0xffffffff
test eax, eax
jl 0x42d80f
cmp esi, eax
jg 0x42d7c4
cmp esi, eax
jg 0x42d81a
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42d888
inc edx
dec dword [ebp - 0x1c]
jne 0x42d7c0
jmp 0x42d885
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x42d885
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42d86c
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42d84b
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x42d856
or eax, 0xffffffff
jmp 0x42d86c
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42d869
inc eax
jmp 0x42d86c
or eax, 0xffffffff
test eax, eax
jl 0x42d874
cmp esi, eax
jg 0x42d834
cmp esi, eax
jg 0x42d87f
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42d888
inc edx
dec dword [ebp - 0x1c]
jne 0x42d830
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43c8c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x43c8c8
mov eax, edx
pop esi
pop ebx
ret

Function at 0x43f50c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x43f523
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x43f513
mov eax, ecx
pop ebx
ret
Function at 0x44fe00
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x44fe14
add esp, 0xfffffff0
call fcn.004089c4
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x449e9c]
call fcn.0046d8e0
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x44ee3c]
call fcn.004706b0
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x44ee3c]
call fcn.004706b0
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
mov eax, esi
test bl, bl
je 0x44fe69
call fcn.00408a1c
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b93dc
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4b941f
cmp byte [ebx + 0x11], 0
jne 0x4b941f
cmp byte [ebx + 0x24], 0
jne 0x4b941f
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4b9436
mov ecx, dword [0x55a15c]
mov dl, 1
mov eax, dword [0x4899e8]
call fcn.00427ea4
call fcn.00409878
pop ebx
ret
mov ecx, dword [0x55a15c]
mov dl, 1
mov eax, dword [0x4899e8]
call fcn.00427ea4
call fcn.00409878
pop ebx
ret

Function at 0x4b9da4
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4b9df2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004b9288
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b9e0b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4b9e14
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004b9288
dec esi
jne 0x4b9e36
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret
Function at 0x4134b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x41356f
lea eax, [ebp + 0x28]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x413503
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
push 1
push 0x6650
push dword [ebp - 0x10]
push 0x5fb8
call fcn.004135e4
add esp, 0x10
jmp 0x41356d
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x41354f
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x41354d
push 0x10e3
push 0x14ed
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetDC]
push eax
call dword [sym.imp.GDI32.dll_GetPixel]
jmp 0x41356d
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x41356d
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x4135e0
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x3c], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x4135a1
push 0
call fcn.0041d65f
pop ecx
jmp 0x4135e0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
push dword [ebp - 0x40]
push 0xbd6
push 0
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push 0x40ef
push 0
push 0x52a2
push dword [ebp - 0x4c]
call fcn.00417111
add esp, 0x24
mov esp, ebp
pop ebp
ret
Function at 0x413767
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x4137f0
lea eax, [ebp + 0x20]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x41379f
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push 1
push dword [ebp - 0xc]
call fcn.004138a4
pop ecx
pop ecx
jmp 0x4137eb
push 0x745f
push 1
push 0x3907
push 0x7db0
push 0x3216
push 0x31b8
push 0x316f
push 0x6621
push 0
push 0x566c
push 0x6c64
push 0x452b
push 0
push 0x6fb0
push 0x28fa
push 1
call fcn.004150f2
add esp, 0x40
jmp 0x4138a0
lea eax, [ebp + 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x41388a
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
test eax, eax
je 0x413861
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x41385f
push 0xc83
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
jmp 0x413888
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx]
mov eax, dword [eax]
mov dword [ecx + 8], eax
jmp 0x4138a0
push 0
push 0
push 0x2044
push 0x3e7c
call fcn.0040cdbf
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x4160e4
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
movzx eax, byte [ebp + 8]
test eax, eax
je 0x416114
mov eax, dword [ebp + 0x18]
mov dword [ebp - 8], eax
push 0
push 0x1650
push 0x797b
push dword [ebp - 8]
call fcn.0041e740
add esp, 0x10
jmp 0x4161b3
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x416199
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x416170
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x41616e
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x416197
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x34]
mov ecx, dword [ecx]
mov eax, dword [eax + 0x10]
mov dword [ecx], eax
jmp 0x4161b3
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x3c], eax
push dword [ebp - 0x3c]
push 0
push 0x916
push 0
call fcn.00410215
add esp, 0x10
mov esp, ebp
pop ebp
ret