joyce8/EMBER2024-capa huggingface dataset:
Function at 0x493d20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x493d68
call fcn.00495011
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x493d68
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x493dab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x493d94
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 0x493d94
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x493da8
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 0x4a58c9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x52d4d0]
jne 0x4a58d3
repz ret
jmp fcn.004b0961

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x4a80fe
call fcn.004aae66
mov dword [eax], esi
call fcn.004aae53
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004a5f7e
add esp, 0x14
push 0x16
pop eax
jmp 0x4a8153
test dword [ebp + 0xc], 0xfffffff9
jne 0x4a80da
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a812b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004aae79
pop ecx
call fcn.004aae53
mov eax, dword [eax]
jmp 0x4a8153
test al, 0x10
jne 0x4a8151
test al, 1
je 0x4a8151
test byte [ebp + 0xc], 2
je 0x4a8151
call fcn.004aae66
mov dword [eax], 5
call fcn.004aae53
mov dword [eax], 0xd
jmp 0x4a8122
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4be2d9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004b02c5
and dword [ebp - 4], 0
cmp dword [0x536960], 0
mov ebx, eax
jne 0x4be38a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4be43b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4be43b
push eax
call fcn.004b0253
mov dword [esp], 0x503bc0
push edi
mov dword [0x536960], eax
call esi
push eax
call fcn.004b0253
mov dword [esp], 0x503bac
push edi
mov dword [0x536964], eax
call esi
push eax
call fcn.004b0253
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x536968], eax
call esi
push eax
call fcn.004b0253
pop ecx
mov dword [0x536970], eax
test eax, eax
je 0x4be38a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004b0253
pop ecx
mov dword [0x53696c], eax
mov eax, dword [0x53696c]
cmp eax, ebx
je 0x4be3e2
cmp dword [0x536970], ebx
je 0x4be3e2
push eax
call fcn.004b02ce
push dword [0x536970]
mov esi, eax
call fcn.004b02ce
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4be3e2
test edi, edi
je 0x4be3e2
call esi
test eax, eax
je 0x4be3d9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4be3d9
test byte [ebp - 0xc], 1
jne 0x4be3e2
or dword [ebp + 0x10], 0x200000
jmp 0x4be41b
mov eax, dword [0x536964]
cmp eax, ebx
je 0x4be41b
push eax
call fcn.004b02ce
pop ecx
test eax, eax
je 0x4be41b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4be41b
mov eax, dword [0x536968]
cmp eax, ebx
je 0x4be41b
push eax
call fcn.004b02ce
pop ecx
test eax, eax
je 0x4be41b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x536960]
call fcn.004b02ce
pop ecx
test eax, eax
je 0x4be43b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4be43d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d0bc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x50
call fcn.004ad960
mov eax, dword [0x52d4d0]
xor eax, esp
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x60]
push ebx
push ebp
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x74]
push esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x60]
mov ebx, dword [eax + 0xc]
push edi
mov edi, dword [eax + 8]
xor esi, esi
cmp edi, 0x20
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], esi
jle 0x4d0c26
push str.nkey___EVP_MAX_KEY_LENGTH
push 0x79
push str..cryptoevpevp_key.c
call fcn.0044e160
add esp, 0xc
cmp ebx, 0x10
jle 0x4d0c3f
push str.niv___EVP_MAX_IV_LENGTH
push 0x7a
push str..cryptoevpevp_key.c
call fcn.0044e160
add esp, 0xc
cmp dword [esp + 0x18], esi
jne 0x4d0c5a
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.004a58c9
add esp, 0x50
ret
lea ecx, [esp + 0x20]
push ecx
call fcn.0044ba90
add esp, 4
jmp 0x4d0c74
mov esi, dword [esp + 0x30]
mov edx, dword [esp + 0x1c]
push 0
push edx
lea eax, [esp + 0x28]
push eax
call fcn.0044bab0
mov ecx, esi
inc esi
add esp, 0xc
mov dword [esp + 0x30], esi
test ecx, ecx
je 0x4d0caa
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0044bbd0
add esp, 0xc
mov edx, dword [esp + 0x74]
mov eax, dword [esp + 0x18]
push edx
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0044bbd0
mov eax, dword [esp + 0x40]
add esp, 0xc
test eax, eax
je 0x4d0cd9
push 8
push eax
lea edx, [esp + 0x28]
push edx
call fcn.0044bbd0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.0044bbe0
mov esi, dword [esp + 0x84]
add esp, 0xc
cmp esi, 1
jbe 0x4d0d41
dec esi
lea ecx, [ecx]
mov eax, dword [esp + 0x1c]
push 0
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.0044bab0
mov edx, dword [esp + 0x1c]
push edx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.0044bbd0
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.0044bbe0
add esp, 0x24
sub esi, 1
jne 0x4d0d00
mov esi, dword [esp + 0x10]
xor eax, eax
test edi, edi
je 0x4d0d6d
jmp 0x4d0d50
cmp eax, esi
je 0x4d0d6d
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x4d0d67
mov dl, byte [esp + eax + 0x38]
mov byte [ecx], dl
inc ecx
mov dword [esp + 0x14], ecx
dec edi
inc eax
test edi, edi
jne 0x4d0d50
test ebx, ebx
je 0x4d0d8b
cmp eax, esi
je 0x4d0d8b
cmp eax, esi
je 0x4d0d8b
test ebp, ebp
je 0x4d0d85
mov cl, byte [esp + eax + 0x38]
mov byte [ebp], cl
inc ebp
dec ebx
inc eax
test ebx, ebx
jne 0x4d0d75
test edi, edi
jne 0x4d0c70
test ebx, ebx
jne 0x4d0c70
lea edx, [esp + 0x20]
push edx
call fcn.0044bc60
lea eax, [esp + 0x3c]
push 0x24
push eax
call fcn.0044ca90
mov ecx, dword [esp + 0x70]
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 0x68]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004a58c9
add esp, 0x50
ret
Function at 0x4d3cb0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0xd8], 0
je 0x4d3d27
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xe0]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1388
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xd8]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4d3d0a
push 0xffffffffffffffff
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 4]
mov dword [ecx], 4
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xd8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xd8], 0
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xe0]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov esp, ebp
pop ebp
ret

Function at 0x4d3d40
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x324
mov dword [ebp - 0x324], ecx
mov eax, dword [ebp + 0x10]
cdq
mov ecx, 0x3e8
idiv ecx
mov dword [ebp - 0x320], eax
mov eax, dword [ebp + 0x10]
cdq
mov ecx, 0x3e8
idiv ecx
imul edx, edx, 0x3e8
mov dword [ebp - 0x31c], edx
mov dword [ebp - 0x318], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x210], 0
cmp dword [ebp - 0x210], 0x40
jae 0x4d3dbd
mov edx, dword [ebp - 0x210]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x20c], eax
mov ecx, dword [ebp - 0x210]
add ecx, 1
mov dword [ebp - 0x210], ecx
xor edx, edx
jne 0x4d3d95
movzx eax, byte [ebp + 0xc]
cmp eax, 1
jne 0x4d3df8
cmp dword [ebp - 0x318], 0x40
jae 0x4d3df2
mov ecx, dword [ebp - 0x318]
mov edx, dword [ebp + 8]
mov dword [ebp + ecx*4 - 0x314], edx
mov eax, dword [ebp - 0x318]
add eax, 1
mov dword [ebp - 0x318], eax
xor ecx, ecx
jne 0x4d3dca
jmp 0x4d3e24
cmp dword [ebp - 0x108], 0x40
jae 0x4d3e20
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp + 8]
mov dword [ebp + edx*4 - 0x104], eax
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
xor edx, edx
jne 0x4d3df8
lea eax, [ebp - 0x320]
push eax
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x318]
push eax
mov ecx, dword [ebp + 8]
add ecx, 1
push ecx
call sub.WS2_32.dll_select
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4d3e80
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
call fcn.004d3cb0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xe0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.00426650
mov ecx, dword [ebp - 4]
movzx edx, byte [ecx + 0x160]
cmp edx, 1
jne 0x4d3f5c
mov eax, dword [ebp - 4]
cmp dword [eax + 0xdc], 0
je 0x4d3f4e
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xe0]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xe4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xe8]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x2710
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xdc]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4d3f31
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xdc]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xdc], 0
mov ecx, dword [ebp - 4]
add ecx, 0x11b4
call fcn.004e2080
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xe8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
add ecx, 0x11b4
call fcn.004e2100
mov ecx, dword [ebp - 4]
add ecx, 0x1198
call fcn.00401270
mov ecx, dword [ebp - 4]
add ecx, 0x174
call fcn.00401270
mov ecx, dword [ebp - 4]
add ecx, 0xf0
call fcn.0041bd60
mov ecx, dword [ebp - 4]
add ecx, 0xac
call fcn.00401270
mov ecx, dword [ebp - 4]
add ecx, 0x90
call fcn.004012f0
mov ecx, dword [ebp - 4]
add ecx, 0x74
call fcn.004012f0
mov ecx, dword [ebp - 4]
add ecx, 0x58
call fcn.004012f0
mov ecx, dword [ebp - 4]
add ecx, 0x3c
call fcn.00401270
mov ecx, dword [ebp - 4]
add ecx, 0x20
call fcn.00401270
mov ecx, dword [ebp - 4]
add ecx, 4
call fcn.00401270
mov esp, ebp
pop ebp
ret
Function at 0x4d4300
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 0x160]
cmp ecx, 1
jne 0x4d43a1
mov edx, dword [ebp - 4]
cmp dword [edx + 0xdc], 0
je 0x4d43a1
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xe0]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xe4]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xe8]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x2710
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xdc]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4d4384
push 0xffffffffffffffff
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0xdc]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xdc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov dword [eax + 0xdc], 0
mov ecx, dword [ebp - 4]
call fcn.004d4240
mov esp, ebp
pop ebp
ret

Function at 0x4d5e30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e70f8
mov eax, dword fs:[0]
push eax
sub esp, 0xd8
mov eax, dword [0x52d4d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe4], ecx
mov ecx, dword [ebp - 0xe4]
add ecx, 4
call fcn.00401990
test eax, eax
jne 0x4d5ec0
push 0x1e1
push 0x50f858
push str.URL_not_valid
lea ecx, [ebp - 0x7c]
call fcn.0041bcf0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0xe0]
call fcn.0041bda0
push 0x51b8d8
lea ecx, [ebp - 0xe0]
push ecx
call fcn.004a99f9
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x7c]
call fcn.00412d10
mov edx, dword [ebp - 0xe4]
mov eax, dword [ebp + 8]
mov dword [edx + 0xcc], eax
push 0
push 1
mov ecx, dword [ebp - 0xe4]
call fcn.004d43b0
mov ecx, dword [ebp - 0xe4]
movzx edx, byte [ecx + 0x160]
cmp edx, 1
jne 0x4d5f18
push 0
push 0
mov eax, dword [ebp - 0xe4]
push eax
push 0x4d5ba0
push 0
push 0
call fcn.004a82c6
add esp, 0x18
mov ecx, dword [ebp - 0xe4]
mov dword [ecx + 0xdc], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a58c9
mov esp, ebp
pop ebp
ret 4
Function at 0x4d6740
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e7181
mov eax, dword fs:[0]
push eax
sub esp, 0x1c4
mov eax, dword [0x52d4d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1d0], ecx
mov dword [ebp - 4], 0
mov byte [ebp - 0x11], 0
mov ecx, dword [ebp - 0x1d0]
add ecx, 4
call fcn.00401990
test eax, eax
jne 0x4d67d5
push 0xe5
push 0x50f668
push 0x50f680
lea ecx, [ebp - 0x7c]
call fcn.0041bcf0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x164]
call fcn.0041bda0
push 0x51b8d8
lea ecx, [ebp - 0x164]
push ecx
call fcn.004a99f9
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x7c]
call fcn.00412d10
mov edx, dword [ebp - 0x1d0]
add edx, 0xd4
push edx
mov ecx, dword [ebp - 0x1d0]
call fcn.004d53e0
test eax, eax
jne 0x4d68ea
mov eax, dword [ebp - 0x1d0]
cmp dword [eax + 0xd8], 0
jne 0x4d68ea
mov ecx, dword [ebp - 0x1d0]
mov edx, dword [ebp + 0x24]
mov dword [ecx + 0xcc], edx
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1d0]
add ecx, 0x74
call fcn.00404ec0
push 0
push 0
mov ecx, dword [ebp - 0x1d0]
push ecx
push 0x4d5f40
push 0
push 0
call fcn.004a82c6
add esp, 0x18
mov edx, dword [ebp - 0x1d0]
mov dword [edx + 0xd8], eax
mov eax, dword [ebp - 0x1d0]
cmp dword [eax + 0xd8], 0
jne 0x4d68da
push str.Unable_to_start_transfer_
lea ecx, [ebp - 0x100]
call fcn.004011f0
mov byte [ebp - 4], 2
push 0xf7
push 0x50f6ac
lea ecx, [ebp - 0x100]
call fcn.00401290
push eax
lea ecx, [ebp - 0xe4]
call fcn.0041bcf0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0xe4]
push ecx
lea ecx, [ebp - 0x1c8]
call fcn.0041bda0
push 0x51b8d8
lea edx, [ebp - 0x1c8]
push edx
call fcn.004a99f9
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe4]
call fcn.00412d10
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x100]
call fcn.00401270
mov eax, dword [ebp - 0x1d0]
mov dword [eax], 1
mov byte [ebp - 0x11], 1
mov cl, byte [ebp - 0x11]
mov byte [ebp - 0x1c9], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004012f0
mov al, byte [ebp - 0x1c9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a58c9
mov esp, ebp
pop ebp
ret 0x20

Function at 0x4d82c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x52d4d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], 0x114
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4d82f2
xor al, al
jmp 0x4d8351
cmp dword [ebp - 0x110], 2
jne 0x4d833d
cmp dword [ebp - 0x11c], 6
jb 0x4d833d
push str.SetThreadUILanguage
push 0x50ffbc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0
je 0x4d8337
movzx ecx, word [ebp + 8]
push ecx
call dword [ebp - 0x124]
jmp 0x4d833b
xor al, al
jmp 0x4d8351
jmp 0x4d834f
movzx edx, word [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
test eax, eax
setne al
jmp 0x4d8351
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a58c9
mov esp, ebp
pop ebp
ret
Function at 0x4d8410
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e643c
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x52d4d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor eax, eax
mov word [ebp - 0x14], ax
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x134], 0x114
lea ecx, [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4d8498
xor edx, edx
mov word [ebp - 0x14a], dx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004012f0
mov ax, word [ebp - 0x14a]
jmp 0x4d85ef
cmp dword [ebp - 0x124], 2
jne 0x4d8506
cmp dword [ebp - 0x130], 6
jb 0x4d8506
push str.LocaleNameToLCID
push 0x50ff8c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
je 0x4d8506
push 0
lea ecx, [ebp + 8]
call fcn.004032f0
push eax
call dword [ebp - 0x13c]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
je 0x4d84fd
mov ax, word [ebp - 0x138]
mov word [ebp - 0x14], ax
jmp 0x4d8506
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x138], 0
jne 0x4d85ce
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
jl 0x4d85ce
lea ecx, [ebp - 0x144]
push ecx
push 0x5054e8
push 0x17
push 0
push 0x5054f8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
jl 0x4d85c8
lea ecx, [ebp + 8]
call fcn.004032f0
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebp - 0x148], eax
cmp dword [ebp - 0x148], 0
je 0x4d85a7
mov edx, dword [ebp - 0x148]
push edx
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0x144]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x144]
push eax
mov ecx, dword [edx + 0x38]
call ecx
test eax, eax
jl 0x4d85a7
mov dx, word [ebp - 0x138]
mov word [ebp - 0x14], dx
mov eax, dword [ebp - 0x148]
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [ebp - 0x144]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x144]
push eax
mov ecx, dword [edx + 8]
call ecx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov dx, word [ebp - 0x14]
mov word [ebp - 0x14c], dx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004012f0
mov ax, word [ebp - 0x14c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a58c9
mov esp, ebp
pop ebp
ret
Function at 0x4d8610
Capabilities:
Check os version
Identify system language via api
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
mov eax, dword [0x52d4d0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0xb0], ax
mov dword [ebp - 0x1d4], 0x50
mov dword [ebp - 0x1d0], 0x114
lea ecx, [ebp - 0x1d0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4d8658
xor eax, eax
jmp 0x4d8758
mov edx, dword [ebp - 0x1c0]
mov dword [ebp - 0x1d8], edx
cmp dword [ebp - 0x1d8], 1
je 0x4d86a4
cmp dword [ebp - 0x1d8], 2
je 0x4d867b
jmp 0x4d8739
cmp dword [ebp - 0x1cc], 5
jb 0x4d8693
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov word [ebp - 0xb0], ax
jmp 0x4d869f
call fcn.004d8390
mov word [ebp - 0xb0], ax
jmp 0x4d8739
lea eax, [ebp - 0xac]
push eax
push 1
push 0
push str.DefaultControl_PanelDesktopResourceLocale
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4d8739
push 0
push 0
lea ecx, [ebp - 0xb4]
push ecx
push 0
push 0
mov edx, dword [ebp - 0xac]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4d872c
cmp dword [ebp - 0xb4], 1
jne 0x4d872c
lea eax, [ebp - 0x1d4]
push eax
lea ecx, [ebp - 0xa8]
push ecx
lea edx, [ebp - 0xb4]
push edx
push 0
push 0
mov eax, dword [ebp - 0xac]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4d872c
lea ecx, [ebp - 0xa8]
push ecx
call fcn.004a808b
add esp, 4
mov word [ebp - 0xb0], ax
mov edx, dword [ebp - 0xac]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, word [ebp - 0xb0]
test eax, eax
jne 0x4d8751
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0xb0], ax
mov ax, word [ebp - 0xb0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a58c9
mov esp, ebp
pop ebp
ret

Function at 0x4d9180
Capabilities:
Resume thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x65c], 1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x658], 0
je 0x4d91f8
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x658]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0x2710
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x658]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4d91db
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x658]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x658]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x658], 0
mov esp, ebp
pop ebp
ret