joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47bcb0
Capabilities:
Read file on windows

Disassembly:
push ecx
push 0x2048
push 0
push esi
mov dword [esp + 0xc], 0
call fcn.004e9730
mov eax, dword [esp + 0x14]
add esp, 0xc
push 0
push 0x80
push 3
push 0
push 3
push bind
push eax
mov dword [esi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x47bcf7
xor eax, eax
pop ecx
ret
push 0
lea ecx, [esp + 4]
push ecx
push 0x2030
lea edx, [esi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [esp], 0x2030
jne 0x47bcf3
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop ecx
ret

Function at 0x47bd30
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esi]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [esp + 0xc]
push eax
push 0xe
lea ebx, [esi + 0x2038]
push ebx
push ecx
mov dword [esp + 0x1c], 0
call ebp
cmp dword [esp + 8], 0xe
jae 0x47bd63
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
mov eax, dword [esi + 0x203a]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push eax
push edi
push ecx
call ebp
mov edx, dword [esp + 8]
cmp edx, dword [esi + 0x203a]
jb 0x47bd5d
mov bl, byte [ebx]
test bl, 0x18
jne 0x47bdbb
test bl, 7
jbe 0x47bdbb
movzx eax, byte [edi + 0xf]
movzx ecx, byte [edi + 0x10]
mov dl, byte [edi + 0x11]
not al
not cl
mov byte [edi + 0xf], al
movzx eax, byte [edi + 0x12]
mov byte [edi + 0x10], cl
movzx ecx, byte [edi + 0x13]
not dl
not al
not cl
mov byte [edi + 0x11], dl
mov byte [edi + 0x12], al
mov byte [edi + 0x13], cl
pop ebp
mov eax, 1
pop ebx
pop ecx
ret

Function at 0x47cb40
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
xor ebx, ebx
push 0x2050
push ebx
push esi
mov dword [esp + 0x10], ebx
call fcn.004e9730
mov eax, dword [esp + 0x18]
add esp, 0xc
push ebx
push 0x80
push 1
push ebx
push 3
push 0x40000000
push eax
mov dword [esi + 0x2040], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x2040], eax
jne 0x47cb8c
xor eax, eax
pop ebx
pop ecx
ret
mov edx, dword [esp + 0x18]
mov dword [esi + 0x14], edx
mov edx, dword [esp + 0x10]
mov dword [esi + 0x18], edx
mov edx, dword [esp + 0x14]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x20], edx
mov edx, dword [esp + 0x20]
mov dword [esi + 0x24], edx
mov edx, dword [esp + 0x24]
push ebx
mov dword [esi + 0x2c], edx
lea edx, [esp + 8]
push edx
lea ecx, [esi + 0x10]
push 0x2030
push ecx
push eax
mov byte [ecx], 1
mov byte [esi + 0x11], bl
mov byte [esi + 0x12], bl
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x203c], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esi + 0x2044], ebx
mov dword [esi], 0x2030
mov dword [esi + 0x2048], 0x7d0
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x47cc70
Capabilities:
Write file on windows

Disassembly:
mov al, byte [esp + 0xc]
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov ebx, edx
mov dl, byte [edi + 0x204c]
test dl, dl
push esi
mov esi, dword [esp + 0x18]
jne 0x47ccae
test ebx, ebx
je 0x47cde6
test dl, dl
jne 0x47ccae
mov eax, dword [ecx]
mov dword [edi + 8], eax
mov edx, dword [ecx + 4]
mov dword [edi + 0xc], edx
mov byte [edi + 0x204c], 1
xor eax, eax
and al, 1
add al, al
mov dl, bl
and dl, 1
or al, dl
shl al, 5
or al, 1
mov byte [esi], al
mov byte [esi + 1], 0
mov dword [esi + 2], ebp
mov eax, dword [ecx]
sub eax, dword [edi + 8]
mov ecx, dword [ecx + 4]
sbb ecx, dword [edi + 0xc]
push 0
push 0x2710
push ecx
push eax
call fcn.004f0630
mov dword [edi + 0x28], eax
mov dword [esi + 6], eax
movzx edx, byte [esi + 0x1d]
movzx eax, byte [esi + 0x1e]
movzx ecx, byte [esi + 0x1f]
not dl
not al
mov byte [esi + 0x1d], dl
movzx edx, byte [esi + 0x20]
mov byte [esi + 0x1e], al
movzx eax, byte [esi + 0x21]
not cl
push 0
mov byte [esi + 0x1f], cl
lea ecx, [esp + 0x10]
push ecx
not dl
add ebp, 0xe
not al
push ebp
mov byte [esi + 0x20], dl
mov byte [esi + 0x21], al
mov edx, dword [edi + 0x2040]
push esi
push edx
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
movzx eax, byte [esi + 0x1d]
movzx ecx, byte [esi + 0x1e]
movzx edx, byte [esi + 0x1f]
not al
mov byte [esi + 0x1d], al
movzx eax, byte [esi + 0x20]
not cl
mov byte [esi + 0x1e], cl
movzx ecx, byte [esi + 0x21]
not al
mov byte [esi + 0x20], al
mov eax, 1
cmp ebx, eax
not dl
not cl
mov byte [esi + 0x1f], dl
mov byte [esi + 0x21], cl
jne 0x47cd89
mov edx, dword [edi + 0x203c]
mov ecx, dword [edi]
mov dword [edi + edx*8 + 0x3c], ecx
mov edx, dword [edi + 0x203c]
mov ecx, dword [edi + 0x28]
mov dword [edi + edx*8 + 0x40], ecx
add dword [edi + 0x203c], eax
add dword [edi + 0x2044], eax
mov eax, dword [edi + 0x2044]
add dword [edi], ebp
cmp eax, dword [edi + 0x2048]
jbe 0x47cde6
mov edx, dword [edi + 0x2040]
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebx, ebx
push ebx
push ebx
push ebx
push edx
mov dword [esp + 0x20], ebx
call esi
mov edx, dword [edi + 0x2040]
push ebx
lea eax, [esp + 0x14]
push eax
push 0x2030
lea ecx, [edi + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [edi + 0x2040]
push 2
push ebx
push ebx
push eax
call esi
mov dword [edi + 0x2044], ebx
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x47cdf0
Capabilities:
Write file on windows

Disassembly:
push ecx
mov dl, byte [eax]
and dl, 0xe8
push edi
or dl, 8
mov byte [eax], dl
xor edx, edx
push edx
mov dword [eax + 2], ecx
lea edi, [ecx + 0xe]
lea ecx, [esp + 8]
push ecx
push edi
mov dword [eax + 6], edx
mov dword [esp + 0x10], edx
mov edx, dword [esi + 0x2040]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add dword [esi], edi
xor eax, eax
pop edi
pop ecx
ret
Function at 0x4919d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
imul eax, edx
push ebx
push ebp
push esi
mov ebp, 0x538248
push edi
xor edi, edi
add eax, ecx
mov ebx, ebp
xor esi, esi
test ecx, ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x1c], edi
je 0x491a26
cmp eax, 1
jl 0x491a26
mov ebp, dword [esp + 0x24]
mov ebx, eax
imul ebx, ebx, 0x124
add ebp, ebx
mov ebx, dword [ebp - 0x124]
cmp ebx, 3
je 0x491a1a
cmp ebx, 4
jne 0x491a20
lea esi, [ebp - 0xbc]
mov ebx, dword [esp + 0x14]
mov ebp, ebx
cmp eax, edx
jl 0x491a50
mov ebp, dword [esp + 0x24]
mov ebx, eax
sub ebx, edx
imul ebx, ebx, 0x124
add ebp, ebx
mov ebx, dword [ebp]
cmp ebx, 3
je 0x491a47
cmp ebx, 4
jne 0x491a4a
lea edi, [ebp + 0x68]
mov ebx, dword [esp + 0x14]
mov ebp, ebx
test ecx, ecx
je 0x491a83
lea ecx, [edx + 1]
cmp eax, ecx
jl 0x491a83
mov ecx, eax
sub ecx, edx
mov edx, dword [esp + 0x24]
imul ecx, ecx, 0x124
add edx, ecx
mov ecx, dword [edx - 0x124]
cmp ecx, 3
je 0x491a7b
cmp ecx, 4
jne 0x491a83
add edx, 0xffffff44
jmp 0x491a87
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
imul eax, eax, 0x124
lea eax, [eax + ecx + 0x68]
mov ecx, dword [esp + 0x28]
cmp ecx, 5
ja case.default.0x491aa2
jmp dword [ecx*4 + 0x491bb8]
test esi, esi
je 0x491ab0
lea ebx, [esi + 0x1e]
test edi, edi
je 0x491ab7
lea ebp, [edi + 0x3c]
test edx, edx
je case.default.0x491aa2
add edx, 0x5a
jmp 0x491b25
test edi, edi
mov ebx, eax
je case.default.0x491aa2
lea ebp, [edi + 0x5a]
add edi, 0x3c
mov dword [esp + 0x10], edi
jmp case.default.0x491aa2
test esi, esi
je 0x491ae0
lea ebx, [esi + 0x5a]
add esi, 0x1e
mov dword [esp + 0x10], esi
mov ebp, eax
jmp case.default.0x491aa2
lea ebx, [eax + 0x3c]
lea ebp, [eax + 0x1e]
mov dword [esp + 0x10], eax
jmp case.default.0x491aa2
test esi, esi
je 0x491af7
lea ebx, [esi + 0x78]
test edi, edi
je 0x491afe
lea ebp, [edi + 0x78]
test edx, edx
je case.default.0x491aa2
add edx, 0x78
jmp 0x491b25
test esi, esi
je 0x491b11
lea ebx, [esi + 0x96]
test edi, edi
je 0x491b1b
lea ebp, [edi + 0x96]
test edx, edx
je case.default.0x491aa2
add edx, 0x96
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x10]
movsx ecx, word [edx]
movzx ebp, word [ebp]
movzx ebx, word [ebx]
movsx edi, bp
mov eax, ecx
sub eax, edi
cdq
xor eax, edx
sub eax, edx
mov dword [esp + 0x24], eax
movsx esi, bx
mov eax, esi
sub eax, ecx
mov ecx, dword [esp + 0x24]
cdq
xor eax, edx
sub eax, edx
cmp eax, ecx
mov ecx, dword [esp + 0x2c]
jge 0x491b80
test bp, bp
jle 0x491b7c
mov eax, ecx
sar eax, 1
add eax, edi
cdq
idiv ecx
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov word [ecx], ax
add esp, 0x10
ret
mov eax, edi
jmp 0x491b9f
test bx, bx
jle 0x491b9d
mov eax, ecx
sar eax, 1
add eax, esi
cdq
idiv ecx
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov word [ecx], ax
add esp, 0x10
ret
mov eax, esi
mov edx, ecx
sar edx, 1
sub eax, edx
cdq
idiv ecx
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov word [ecx], ax
add esp, 0x10
ret
Function at 0x4a81c0
Capabilities:
Encode data using xor

Disassembly:
push ecx
cmp eax, 0x20
push esi
jg 0x4a8273
mov esi, 1
mov ecx, eax
shl esi, cl
cmp edx, esi
jae 0x4a8273
mov ecx, 0x20
sub ecx, eax
xor esi, esi
shl edx, cl
mov ecx, esi
shl ecx, 0x18
mov eax, ecx
sar eax, 0x1f
add ecx, ecx
and eax, edx
xor eax, ecx
mov ecx, eax
sar ecx, 0x1f
and ecx, edx
add eax, eax
xor ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, ecx
and eax, edx
xor eax, ecx
mov ecx, eax
sar ecx, 0x1f
and ecx, edx
add eax, eax
xor ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, ecx
and eax, edx
xor eax, ecx
mov ecx, eax
sar ecx, 0x1f
and ecx, edx
add eax, eax
xor ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, ecx
and eax, edx
xor eax, ecx
mov ecx, eax
sar ecx, 0x1f
and ecx, edx
add eax, eax
xor ecx, eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 4]
bswap eax
mov dword [esp + 4], eax
mov ecx, dword [esp + 4]
mov dword [edi + esi*4], ecx
add esi, 1
cmp esi, 0x100
jl 0x4a81e7
mov dword [edi + 0x400], 1
xor eax, eax
pop esi
pop ecx
ret
or eax, 0xffffffff
pop esi
pop ecx
ret

Function at 0x4c4be4
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 0x4c4c2a
call fcn.004c6f68
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4c4c2a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4c4c6d
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 0x4c4c56
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 0x4c4c56
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4c4c6a
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 0x4ce98d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4ce9c6
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.0041aee0
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00450310
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x4d0592
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 0x4d05d5
call fcn.004c6f68
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4d05d5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4d05f0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004d0149
test ebx, ebx
mov esi, eax
je 0x4d05ee
test edi, edi
je 0x4d05ee
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4d159b
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x4d15a4
xor eax, eax
jmp 0x4d160d
cmp dword [esp + 8], 0
jne 0x4d15b0
call fcn.004c463b
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.004eb0d8
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4d15eb
push dword [esi + 0x10]
call fcn.004eae1d
test eax, eax
pop ecx
jne 0x4d15eb
mov esi, dword [esi + 0xc]
call fcn.004ea2a2
push esi
push dword [eax]
push 1
call fcn.004d1405
push dword [esi + 0x10]
call fcn.004eae4c
test eax, eax
pop ecx
je 0x4d160a
push dword [esi + 0x10]
call fcn.004ead71
push eax
call fcn.00404000
pop ecx
pop ecx
jmp 0x4d15d9
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x4d1616
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x4d1620
call fcn.004c463b
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.004e4b83
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x4d164d
mov esi, dword [esi + 0xc]
call fcn.004ea2a2
push esi
push dword [eax]
push 1
call fcn.004d1405
pop esi
ret 8

Function at 0x4d4707
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d4735
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d4753
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d4671
jmp 0x4d4753
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d4753
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.004d4671
test edi, edi
mov eax, edi
jne 0x4d473d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x55bb90]
test ecx, ecx
je 0x4d4816
jmp 0x4d4706
ret 8

Function at 0x4e0b83
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5566e0]
jne 0x4e0b8d
repz ret
jmp fcn.004ec300
Function at 0x4f37f2
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004ed3c7
xor ebx, ebx
cmp dword [0x55c6a4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4f38c7
push 0x5200b8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebx
jne 0x4f3832
xor eax, eax
jmp 0x4f398b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push edi
call esi
cmp eax, ebx
je 0x4f382b
push eax
call fcn.004ed364
mov dword [esp], 0x52009c
push edi
mov dword [0x55c6a4], eax
call esi
push eax
call fcn.004ed364
mov dword [esp], 0x520088
push edi
mov dword [0x55c6a8], eax
call esi
push eax
call fcn.004ed364
mov dword [0x55c6ac], eax
lea eax, [ebp - 8]
push eax
call fcn.004e4040
test eax, eax
pop ecx
pop ecx
je 0x4f3895
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004e2303
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4f38c7
push str.GetUserObjectInformationW
push edi
call esi
push eax
call fcn.004ed364
cmp eax, ebx
pop ecx
mov dword [0x55c6b4], eax
je 0x4f38c7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004ed364
pop ecx
mov dword [0x55c6b0], eax
mov eax, dword [0x55c6b0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4f3940
cmp dword [0x55c6b4], esi
je 0x4f3940
push eax
call fcn.004ed3d0
pop ecx
call eax
cmp eax, ebx
je 0x4f390d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x55c6b4]
call fcn.004ed3d0
pop ecx
call eax
test eax, eax
je 0x4f390d
test byte [ebp - 0x18], 1
jne 0x4f3940
lea eax, [ebp - 0xc]
push eax
call fcn.004e4077
test eax, eax
pop ecx
je 0x4f3928
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004e2303
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4f3937
or dword [ebp + 0x10], 0x200000
jmp 0x4f3971
or dword [ebp + 0x10], 0x40000
jmp 0x4f3971
mov eax, dword [0x55c6a8]
cmp eax, esi
je 0x4f3971
push eax
call fcn.004ed3d0
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4f3971
mov eax, dword [0x55c6ac]
cmp eax, esi
je 0x4f3971
push dword [ebp - 4]
push eax
call fcn.004ed3d0
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x55c6a4]
call fcn.004ed3d0
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4f9155
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004ed3c7
xor ebx, ebx
cmp dword [0x55c6c8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4f922a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4f9195
xor eax, eax
jmp 0x4f92ee
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5202f4
push edi
call esi
cmp eax, ebx
je 0x4f918e
push eax
call fcn.004ed364
mov dword [esp], 0x52009c
push edi
mov dword [0x55c6c8], eax
call esi
push eax
call fcn.004ed364
mov dword [esp], 0x520088
push edi
mov dword [0x55c6cc], eax
call esi
push eax
call fcn.004ed364
mov dword [0x55c6d0], eax
lea eax, [ebp - 8]
push eax
call fcn.004e4040
test eax, eax
pop ecx
pop ecx
je 0x4f91f8
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004e2303
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4f922a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004ed364
cmp eax, ebx
pop ecx
mov dword [0x55c6d8], eax
je 0x4f922a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004ed364
pop ecx
mov dword [0x55c6d4], eax
mov eax, dword [0x55c6d4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4f92a3
cmp dword [0x55c6d8], esi
je 0x4f92a3
push eax
call fcn.004ed3d0
pop ecx
call eax
cmp eax, ebx
je 0x4f9270
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x55c6d8]
call fcn.004ed3d0
pop ecx
call eax
test eax, eax
je 0x4f9270
test byte [ebp - 0x18], 1
jne 0x4f92a3
lea eax, [ebp - 0xc]
push eax
call fcn.004e4077
test eax, eax
pop ecx
je 0x4f928b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004e2303
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4f929a
or dword [ebp + 0x10], 0x200000
jmp 0x4f92d4
or dword [ebp + 0x10], 0x40000
jmp 0x4f92d4
mov eax, dword [0x55c6cc]
cmp eax, esi
je 0x4f92d4
push eax
call fcn.004ed3d0
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4f92d4
mov eax, dword [0x55c6d0]
cmp eax, esi
je 0x4f92d4
push dword [ebp - 4]
push eax
call fcn.004ed3d0
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x55c6c8]
call fcn.004ed3d0
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x50a9c6
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x5566e0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0050a95b
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.004e9730
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 0x50aa15
cmp dword [ebp - 0x1c], 5
jb 0x50aa2d
jmp 0x50aa29
cmp dword [ebp - 0x10], 1
jne 0x50aa2d
cmp dword [ebp - 0x1c], 4
ja 0x50aa29
jne 0x50aa2d
cmp dword [ebp - 0x18], 0
jbe 0x50aa2d
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x5245f4
call fcn.0050a84c
test eax, eax
jge 0x50aa4e
mov byte [0x5742e2], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004e0b83
add ebp, 0x78
leave
ret
Function at 0x402210
Capabilities:
Extract resource via kernel32 functions
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x436984], 0
push ebx
push esi
push edi
jne 0x402346
mov byte [0x436984], 1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
push 0x42fecc
push 0x4300a4
push dword [0x436980]
movzx esi, ax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x402295
push edi
push dword [0x436980]
call ebx
mov ebx, eax
test ebx, ebx
je 0x40228f
push edi
push dword [0x436980]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40228f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40228f
push 1
mov edx, ebx
mov ecx, eax
call fcn.00401fc0
add esp, 4
mov ebx, dword [sym.imp.KERNEL32.dll_SizeofResource]
xor eax, eax
nop word [eax + eax]
cmp word [eax*8 + 0x430120], si
je 0x4022b2
inc eax
cmp eax, 0x3c
jb 0x4022a0
jmp 0x4022b7
cmp eax, 0xffffffff
jne 0x4022d7
xor eax, eax
and esi, 0x3ff
nop
cmp word [eax*8 + 0x430120], si
je 0x4022d7
inc eax
cmp eax, 0x3c
jb 0x4022c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 0x3c
jae 0x402346
push 0x42fecc
push dword [eax*8 + 0x430124]
push dword [0x436980]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x402308
xor al, al
mov byte [0x436974], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push dword [0x436980]
call ebx
mov edi, eax
test edi, edi
je 0x4022fa
push esi
push dword [0x436980]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4022fa
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4022fa
push 0
mov edx, edi
mov ecx, eax
call fcn.00401fc0
add esp, 4
mov byte [0x436974], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret