joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3534b80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x353a380
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x3534ba7
add eax, 8
inc ecx
cmp eax, 0x353a410
jb 0x3534b98
cmp dword [ecx*8 + 0x353a380], edx
lea ebx, [ecx*8]
jne 0x3534d6b
cmp dword [0x353a040], 1
je 0x3534d27
cmp dword [0x353a040], 0
jne 0x3534bde
cmp dword [0x353a044], 1
je 0x3534d27
cmp edx, 0xfc
je 0x3534d6b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x3534c1b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x3534c5f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x35394f8
push ebp
call fcn.03535f40
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x35394d8
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x353a384]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.03535ea0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x353b4f0], 0
je 0x3534d3d
mov eax, dword [0x353b4f0]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x3534d47
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x353a384]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x402588
Capabilities:
Acquire debug privileges

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x411038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 8
mov dword [ebp - 0x18], ebx
pop ecx
lea eax, [ebp - 0x20]
mov byte [eax], bl
inc eax
dec ecx
jne 0x4025a6
push 0x10
pop ecx
lea eax, [ebp - 0x14]
mov byte [eax], bl
inc eax
dec ecx
jne 0x4025b2
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4094c6
lea eax, [ebp - 0x20]
push eax
push 0x40263c
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x4094d2
mov eax, dword [ebp - 0x20]
push ebx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push ebx
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4094e2
xor ebx, ebx
inc ebx
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00401d62
leave
ret
call fcn.0040355c
xor eax, eax
jmp 0x40262d
call fcn.0040355c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4094cb
call fcn.0040355c
jmp 0x402622
Function at 0x405e59
Capabilities:
Terminate process

Disassembly:
push 0xc
push 0x401f80
call fcn.004011da
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
push ebx
push esi
push 0x411028
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x40a480
xor esi, esi
inc esi
cmp dword [0x411024], esi
je 0x40a49e
cmp dword [0x411024], ebx
jne 0x401f59
mov dword [0x411024], esi
push 0x401f7c
push 0x401f70
call fcn.00403611
pop ecx
pop ecx
test eax, eax
jne 0x40a4ab
cmp dword [0x411024], esi
jne 0x401f09
push 0x401f6c
push 0x401f64
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x411024], 2
test edi, edi
jne 0x401f19
push ebx
push 0x411028
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x411480], 0
jne 0x40a4b9
push dword [0x411034]
push dword [0x411030]
push dword [0x41102c]
call fcn.00401fa1
add esp, 0xc
mov dword [0x411004], eax
cmp dword [0x41100c], 0
jne 0x40a50a
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov dword [0x4114c0], esi
jmp 0x401ee6
call fcn.00405e68
jmp 0x401e7b
cmp eax, esi
jne 0x40a48e
xor esi, esi
inc esi
mov edi, esi
jmp 0x401eaf
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401e97
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x401ee6
mov dword [ebp - 4], CoCreateInstance
mov eax, 0xff
jmp 0x40a525
push 0x411480
call fcn.0040f170
pop ecx
test eax, eax
je 0x401f26
push ebx
push 2
push ebx
call dword [0x411480]
jmp 0x401f26
cmp dword [0x4114c0], 0
jne 0x40a51e
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x411004]
mov dword [ebp - 4], CoCreateInstance
call fcn.004015bc
ret
Function at 0x40764d
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push dword [eax + 0x58]
push 0
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4081b2
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4081d4
cmp dword [ebp - 4], reloc.KERNEL32.dll_VerSetConditionMask
jne 0x4081dd
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
test eax, eax
je 0x4081eb
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
pop esi
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4081c8
push 0x80004021
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0040355c
xor eax, eax
jmp 0x4076ad
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4081c8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x8004130b
jmp 0x4081c2
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4081b2

Function at 0x40aa3d
Capabilities:
Enumerate services

Disassembly:
push 0x1c
mov eax, 0x40f41d
call fcn.0040125e
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], ecx
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [edi + 0x80], ecx
mov dword [edi + 0x84], ecx
cmp dword [edi + 0x34], ecx
jne 0x40aa71
xor eax, eax
inc eax
jmp 0x40aa9b
mov eax, ecx
cmp dword [edi + 0xac], ecx
jne 0x40aa7e
mov eax, dword [edi + 0x68]
mov dword [ebp - 4], ecx
push 5
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
jne 0x40aaa1
call fcn.0040355c
xor eax, eax
call fcn.00401923
ret
xor ecx, ecx
mov dword [ebp - 0x28], ecx
and dword [ebp - 0x18], ecx
mov eax, 0x1000
mov dword [ebp - 0x1c], eax
inc ecx
mov dword [ebp - 0x28], ecx
cmp ecx, 2
ja 0x40ab37
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], eax
push eax
call fcn.0040155a
mov esi, eax
mov dword [ebp - 0x14], esi
test esi, esi
jne 0x40aadc
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x40aa94
xor ecx, ecx
mov dword [ebp - 0x18], ecx
push ecx
lea eax, [ebp - 0x18]
push eax
lea eax, [edi + 0x80]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x1c]
push esi
push 1
push 0x30
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_EnumServicesStatusExW]
cmp eax, 1
je 0x40ab37
lea esi, [ebp - 0x14]
call fcn.004016c7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x40ab26
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x28]
jmp 0x40aab1
call fcn.0040355c
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x40aa99
or dword [ebp - 4], reloc.KERNEL32.dll_VerSetConditionMask
cmp dword [edi + 0x80], 0
jne 0x40ab51
lea esi, [ebp - 0x14]
call fcn.004016c7
jmp 0x40aa6c
mov dword [edi + 0x84], esi
jmp 0x40aa6c
Function at 0x40ab84
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
mov edi, 0x40ac40
cmp eax, edi
je 0x40abc8
test esi, esi
je 0x40abc8
xor ebx, ebx
cmp dword [esi], ebx
jne 0x40abc8
mov eax, 0x8000
push eax
mov dword [ebp - 4], eax
call fcn.0040155a
mov dword [esi], eax
test eax, eax
jne 0x40abd1
push 0x8007000e
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0040355c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
lea ecx, [ebp - 4]
push ecx
push eax
push ebx
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
jmp 0x40ac0b
add dword [ebp - 4], reloc.KERNEL32.dll_VerSetConditionMask
call fcn.004016c7
push dword [ebp - 4]
xor edi, edi
mov dword [esi], edi
call fcn.0040155a
mov dword [esi], eax
test eax, eax
je 0x40abb8
lea ecx, [ebp - 4]
push ecx
push eax
push edi
push edi
push 0x40ac40
push dword [ebp + 8]
call ebx
mov edi, eax
cmp edi, 0xea
je 0x40abe1
xor ebx, ebx
inc ebx
test edi, edi
je 0x40ac3c
cmp dword [esi], 0
je 0x40ac2e
call fcn.004016c7
and dword [esi], 0
push edi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0040355c
mov eax, ebx
jmp 0x40abca
Function at 0x40d4ed
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xa10
mov eax, dword [0x411038]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
xor ebx, ebx
push 7
mov dword [ebp - reloc.KERNEL32.dll_VerSetConditionMask], eax
xor eax, eax
pop ecx
lea edi, reloc.KERNEL32.dll_VerSetConditionMask
mov dword [ebp - reloc.KERNEL32.dll_VerSetConditionMask], ebx
mov dword [ebp - reloc.KERNEL32.dll_VerSetConditionMask], edx
mov dword [ebp - reloc.KERNEL32.dll_VerSetConditionMask], ebx
rep stosd dword es:[edi], eax
mov word [ebp - 0x52], ax
test esi, esi
je 0x40d64d
test edx, edx
je 0x40d64d
cmp dword [edx], eax
je 0x40d55e
cmp dword [edx], 2
jb 0x40d64d
cmp dword [ebp - reloc.KERNEL32.dll_VerSetConditionMask], eax
je 0x40d64d
cmp dword [0x411464], eax
jne 0x40d592
lea eax, reloc.KERNEL32.dll_VerSetConditionMask
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40d588
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
jmp 0x40d659
mov dword [0x411464], 1
lea eax, reloc.KERNEL32.dll_VerSetConditionMask
push eax
lea eax, reloc.KERNEL32.dll_VerSetConditionMask
push eax
push ebx
push esi
call dword [sym.imp.WS2_32.dll_GetAddrInfoW]
test eax, eax
jne 0x40d65f
mov esi, dword [ebp - reloc.KERNEL32.dll_VerSetConditionMask]
jmp 0x40d5f8
push 4
xor eax, eax
mov word [ebp - 0x854], ax
push 0x20
lea eax, [ebp - 0x4c]
push eax
push 0x401
lea eax, reloc.KERNEL32.dll_VerSetConditionMask
push eax
push dword [esi + 0x10]
push dword [esi + 0x18]
call dword [sym.imp.WS2_32.dll_GetNameInfoW]
test eax, eax
je 0x40d5fe
cmp eax, 0x2afc
jne 0x40d5f5
cmp word [ebp - 0x854], bx
jne 0x40d5fe
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x40d63d
jmp 0x40d5b8
lea eax, reloc.KERNEL32.dll_VerSetConditionMask
push 0x40a5fc
push eax
call dword [sym.imp.msvcrt.dll_wcstok]
pop ecx
pop ecx
mov edi, eax
push edi
call fcn.00401843
mov ecx, dword [ebp - reloc.KERNEL32.dll_VerSetConditionMask]
inc eax
cmp dword [ecx], eax
jae 0x40d62c
xor ebx, ebx
mov dword [ecx], eax
inc ebx
jmp 0x40d63d
mov esi, dword [ecx]
mov ecx, dword [ebp - reloc.KERNEL32.dll_VerSetConditionMask]
mov edx, edi
call fcn.00401d74
mov ebx, eax
push dword [ebp - 0x9e8]
call dword [sym.imp.WS2_32.dll_FreeAddrInfoW]
mov eax, ebx
jmp 0x40d661
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40d65f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401d62
leave
ret 4
Function at 0x40f0ee
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x40f104
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], reloc.KERNEL32.dll_VerSetConditionMask
jne 0x40f11f
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x40f126
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
movzx ebx, word [ecx + 6]
add eax, 0x18
push esi
xor edx, edx
add eax, ecx
push edi
test ebx, ebx
je 0x40f164
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40f15c
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40f166
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40f14c
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
mov ecx, 0x3f880270
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data_1
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x11c96e26
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x4128c5
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
movzx eax, byte [ebp + 0x1c]
test eax, eax
je 0x4129db
lea eax, [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
lea eax, [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x412976
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x41296e
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x41294f
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 4
jge 0x41296c
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x2c]
call fcn.0043188e
mov dword [eax], 0xb8ac29ba
jmp 0x412944
jmp 0x412974
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
jmp 0x4129d9
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x38], eax
push dword [ebp - 0x38]
push 0x6eeb
push 1
push 0x641a
push dword [ebp - 0x3c]
push 0x27ff
push 0x160b
push 0x2998
push 0
push 0x6680
push 0x2e21
push 0x2f6f
push 0x7fca
push 1
push 0x75be
push 0x1fc1
push 0x54cf
push 0xec
push 1
call fcn.00412a40
add esp, 0x4c
jmp 0x4129ec
push 1
push 0
push 0x1711
call fcn.00419a8d
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x416c1b
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x416c6f
lea eax, [ebp + 0x20]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x416c55
push 0x23b1
push 0x1ddd
push 1
call fcn.00416d19
add esp, 0xc
jmp 0x416c6a
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
push 1
push 0
push dword [ebp - 0x10]
call fcn.0040847c
add esp, 0xc
jmp 0x416d15
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x416cf0
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x416cd1
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
movzx eax, byte [eax]
test eax, eax
je 0x416ccf
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
jmp 0x416cee
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x416cee
push 0
push 0
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x416d15
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x3c]
push 0
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.0042a71e
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x41ebb3
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
movzx eax, byte [ebp + 0x30]
test eax, eax
je 0x41ecb5
lea eax, [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x3c], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x41ec55
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x41ec3f
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x41ec3d
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
jmp 0x41ec53
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
and dword [eax], 0
jmp 0x41ecb3
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x54], eax
push 0x7776
push 1
push 0
push 0x74c3
push dword [ebp - 0x44]
push dword [ebp - 0x48]
push 0
push dword [ebp - 0x4c]
push 0x1700
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push 0x4c06
push 0x1a99
push 0x6569
push 0xa0d
call fcn.00428c60
add esp, 0x3c
jmp 0x41ece0
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x58], eax
push 1
push dword [ebp - 0x58]
push 0x3cdc
push 0x707f
push 0x2796
push dword [ebp - 0x5c]
call fcn.00413605
add esp, 0x18
mov esp, ebp
pop ebp
ret
Function at 0x420561
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
movzx eax, byte [ebp + 0x38]
test eax, eax
je 0x420637
mov eax, dword [ebp + 0x30]
mov dword [ebp - 0x10], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x42061a
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x4205cd
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x4205cb
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
jmp 0x420618
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 - 8], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x4205fb
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 4
jge 0x420618
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x30]
call fcn.0043188e
mov dword [eax], 0x1265
jmp 0x4205f0
jmp 0x420632
push 1
push 0
push 0x2d28
push 0x211a
push 0
call fcn.0041bf49
add esp, 0x14
jmp 0x4206dc
lea eax, [ebp + 0x18]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x2c]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x34]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x420699
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x40], eax
push 0x4862
push 0x60db
push 0
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call fcn.004136f3
add esp, 0x14
jmp 0x4206dc
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x64], eax
push dword [ebp - 0x5c]
push 0
push 0x210f
push 1
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push dword [ebp - 0x68]
push 0x541e
push dword [ebp - 0x6c]
call fcn.0040cd91
add esp, 0x24
mov esp, ebp
pop ebp
ret