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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x4873ca
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x5024e0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4873ca
test cl, 0x48
je 0x48725f
cmp byte [eax + 5], 0xa
je 0x48725f
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4872b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x487299
call fcn.00481d6a
mov dword [eax], 9
call fcn.00481d73
mov dword [eax], esi
jmp 0x4872a9
cmp eax, 0x6d
je 0x4873ca
push eax
call fcn.00481d7c
pop ecx
or eax, 0xffffffff
jmp 0x4873cc
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4873c5
test eax, eax
je 0x4872d8
cmp byte [ebx], 0xa
jne 0x4872d8
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4872e1
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x4873bf
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4873af
cmp al, 0xd
je 0x487313
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4873a1
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x48732d
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x487328
add dword [ebp + 0x10], 2
jmp 0x487381
mov dword [ebp + 0x10], eax
jmp 0x48739d
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x487355
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x48739d
cmp dword [ebp - 0xc], 0
je 0x48739d
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x487376
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x487381
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4873a0
cmp ebx, dword [ebp + 0xc]
jne 0x487386
cmp byte [ebp - 1], 0xa
jne 0x487386
mov byte [ebx], 0xa
jmp 0x4873a0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0048e617
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4873a1
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4872f7
jmp 0x4873bf
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4873bf
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x4873cc
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4877bd
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x4fa698]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x4877f9
xor eax, eax
jmp 0x487963
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x5024e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x487837
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.0048e617
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4878d1
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x487934
jmp 0x48785b
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x487896
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x487887
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x487867
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4878f5
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x4878fe
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x487859
jmp 0x4878fe
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4878f5
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x4878fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x48795e
cmp dword [ebp - 0x68], eax
je 0x487931
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x487926
call fcn.00481d6a
mov dword [eax], 9
call fcn.00481d73
mov dword [eax], esi
jmp 0x487959
push dword [ebp - 0x68]
call fcn.00481d7c
pop ecx
jmp 0x487959
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x487946
cmp byte [edi], 0x1a
jne 0x487946
xor eax, eax
jmp 0x487961
call fcn.00481d6a
mov dword [eax], 0x1c
call fcn.00481d73
and dword [eax], 0
or eax, 0xffffffff
jmp 0x487961
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.00480be0
add ebp, 0x3a4
leave
ret
Function at 0x48c205
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x48c233
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x48c23a
cmp ebx, dword [eax + 4]
jae 0x48c23a
xor eax, eax
jmp 0x48c42a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x48c24b
xor eax, eax
inc eax
jmp 0x48c429
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x48c261
cmp ecx, edx
jae 0x48c3a6
cmp dword [eax + 4], 0
je 0x48c26a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x48c252
cmp dword [ebp + 8], 0
je 0x48c28c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x48c3a6
cmp eax, esi
jae 0x48c3a6
mov eax, dword [0x501450]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x48c2b1
cmp dword [esi*4 + 0x501458], edi
je 0x48c3aa
inc esi
cmp esi, eax
jl 0x48c29f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x48c426
cmp dword [ebp - 8], 0x1000000
jne 0x48c426
test byte [ebp - 0xc], 0xcc
je 0x48c32f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x48c426
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x48c426
cmp word [eax + 0x18], 0x10b
jne 0x48c426
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x48c426
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x48c32f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x48c32f
test byte [ecx + 0x27], 0x80
jne 0x48c3a6
push 1
push 0x501498
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x48c243
mov ecx, dword [0x501450]
test ecx, ecx
mov edx, ecx
jle 0x48c363
lea eax, [ecx*4 + 0x501454]
cmp dword [eax], edi
je 0x48c363
dec edx
sub eax, 4
test edx, edx
jg 0x48c357
test edx, edx
jne 0x48c394
push 0xf
pop ebx
cmp ecx, ebx
jg 0x48c370
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x48c388
lea eax, [edx*4 + 0x501458]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x48c376
cmp ecx, 0x10
jge 0x48c394
inc ecx
mov dword [0x501450], ecx
push 0
push 0x501498
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x48c243
xor eax, eax
jmp 0x48c429
test esi, esi
jle 0x48c243
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x501498
call ebx
test eax, eax
jne 0x48c243
cmp dword [esi*4 + 0x501458], edi
je 0x48c400
mov eax, dword [0x501450]
lea esi, [eax - 1]
test esi, esi
jl 0x48c3ee
cmp dword [esi*4 + 0x501458], edi
je 0x48c3ea
dec esi
jns 0x48c3de
test esi, esi
jge 0x48c3fe
cmp eax, 0x10
jge 0x48c3f9
inc eax
mov dword [0x501450], eax
lea esi, [eax - 1]
jmp 0x48c400
je 0x48c418
xor ecx, ecx
test esi, esi
jl 0x48c418
lea eax, [ecx*4 + 0x501458]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x48c406
push 0
push 0x501498
call ebx
jmp 0x48c243
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x48de60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x501514], ebx
push esi
push edi
jne 0x48dee0
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x48df1b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4ddea8
push edi
call esi
test eax, eax
mov dword [0x501514], eax
je 0x48df1b
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x501518], eax
call esi
cmp dword [0x50116c], 2
mov dword [0x50151c], eax
jne 0x48dee0
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x501524], eax
je 0x48dee0
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x501520], eax
mov eax, dword [0x501520]
test eax, eax
je 0x48df25
call eax
test eax, eax
je 0x48df0c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x501524]
test eax, eax
je 0x48df0c
test byte [ebp - 8], 1
jne 0x48df25
cmp dword [0x501178], 4
jb 0x48df1f
or byte [ebp + 0x12], 0x20
jmp 0x48df44
xor eax, eax
jmp 0x48df54
or byte [ebp + 0x12], 4
jmp 0x48df44
mov eax, dword [0x501518]
test eax, eax
je 0x48df44
call eax
mov ebx, eax
test ebx, ebx
je 0x48df44
mov eax, dword [0x50151c]
test eax, eax
je 0x48df44
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x501514]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x48eb57
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00480bf0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x48ebf2
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x50116c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x48ebf2
cmp eax, 1
je 0x48ec13
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x48ebf2
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x48ebbf
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x48ebee
xor eax, eax
inc eax
jmp 0x48ec32
cmp edi, eax
jae 0x48ebf6
xor eax, eax
jmp 0x48ec32
cmp eax, esi
jae 0x48ebfd
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x50116c]
jmp 0x48ec16
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4904ce
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00480bf0
mov eax, dword [0x4fa698]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00486ff4
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x490603
push 2
push esi
push dword [ebp + 8]
call fcn.00486ff4
add esp, 0xc
cmp eax, ebx
je 0x490603
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4905a3
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0048aa80
push 0x8000
push dword [ebp + 8]
call fcn.00490bb1
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x490559
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004877bd
add esp, 0xc
cmp eax, 0xffffffff
je 0x490579
sub edi, eax
test edi, edi
jg 0x490551
jmp 0x490591
call fcn.00481d73
cmp dword [eax], 5
jne 0x49058e
call fcn.00481d6a
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00490bb1
pop ecx
pop ecx
jmp 0x4905eb
jge 0x4905eb
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00486ff4
push dword [ebp + 8]
call fcn.0048b084
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x4905eb
call fcn.00481d6a
mov dword [eax], 0xd
call fcn.00481d73
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00486ff4
add esp, 0xc
mov eax, esi
pop edi
jmp 0x490605
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00480be0
leave
ret
Function at 0x4908d7
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4ddf98
call fcn.004839ec
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x50160c], edi
jne 0x49091b
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x490906
mov dword [0x50160c], ebx
jmp 0x49091b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x49091b
mov dword [0x50160c], 2
mov eax, dword [0x50160c]
cmp eax, ebx
jne 0x49093b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4909fe
cmp eax, 2
je 0x490944
cmp eax, edi
jne 0x49096c
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x490957
mov eax, dword [0x5014e8]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x490973
xor eax, eax
jmp 0x4909fe
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00480bf0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4909a6
cmp esi, edi
jne 0x4909bc
push dword [ebp - 0x20]
call fcn.00481698
pop ecx
mov esi, eax
cmp esi, edi
je 0x49096c
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x4909ef
cmp dword [ebp + 0x14], edi
jne 0x4909d9
push edi
push edi
jmp 0x4909df
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x4909fb
push esi
call fcn.004816aa
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.00483a27
ret
Function at 0x490a07
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4ddfa8
call fcn.004839ec
xor esi, esi
cmp dword [0x501610], esi
jne 0x490a4b
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x490a36
mov dword [0x501610], edi
jmp 0x490a4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x490a4b
mov dword [0x501610], 2
mov eax, dword [0x501610]
cmp eax, 2
je 0x490b2c
cmp eax, esi
je 0x490b2c
cmp eax, 1
jne 0x490a90
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x490a79
mov eax, dword [0x5014e8]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x490a97
xor eax, eax
jmp 0x490b3e
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00480bf0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x490acd
cmp edi, esi
jne 0x490ae8
lea eax, [ebx + ebx]
push eax
call fcn.00481698
pop ecx
mov edi, eax
cmp edi, esi
je 0x490a90
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x490b1b
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x490b05
push esi
push esi
jmp 0x490b0b
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x490b27
push edi
call fcn.004816aa
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x490b3e
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.00483a27
ret
Function at 0x492378
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [eax], 0x20000000
mov dword [ebp - 4], edi
jne 0x4924bf
push ebx
push esi
push 4
pop esi
add eax, esi
mov ecx, dword [eax]
cmp ecx, 0x40020000
jne 0x49241e
add eax, esi
mov ecx, dword [eax]
xor edx, edx
cmp ecx, 0x40000001
je 0x4923c8
cmp ecx, 0x40010001
je 0x4923c8
cmp ecx, 0x40020001
je 0x4923c8
cmp ecx, 0x40030001
jne 0x4923d3
shr ecx, 0x10
and ecx, 0xf
inc ecx
mov edx, ecx
add eax, esi
cmp dword [eax], 0x40050002
jne 0x4923e5
inc edx
mov dword [ebp - 4], 0x1000
add eax, esi
mov ecx, edx
sub ecx, edi
je 0x492418
dec ecx
je 0x492412
dec ecx
je 0x49240c
dec ecx
je 0x492406
dec ecx
je 0x492400
dec ecx
jne 0x49242b
or dword [ebp - 4], 0xe
jmp 0x49242b
or dword [ebp - 4], 0xc
jmp 0x49242b
or dword [ebp - 4], 0xa
jmp 0x49242b
or dword [ebp - 4], 8
jmp 0x49242b
or dword [ebp - 4], 6
jmp 0x49242b
or dword [ebp - 4], 2
jmp 0x49242b
cmp ecx, 0x40030000
jne 0x49242b
mov dword [ebp - 4], esi
add eax, esi
cmp dword [eax], 0x40020003
push 0x10
pop ecx
jne 0x49243b
or dword [ebp - 4], ecx
add eax, esi
cmp dword [eax], 0x40000004
jne 0x492449
or dword [ebp - 4], 0x20
add eax, esi
cmp dword [eax], 0x40040005
jne 0x492457
or dword [ebp - 4], 0x40
add eax, esi
cmp dword [eax], 0x40040006
jne 0x492465
or byte [ebp - 4], 0x80
add eax, esi
push 7
pop esi
mov edx, dword [eax]
mov ebx, esi
or ebx, 0x40000000
cmp ebx, edx
jne 0x49247a
push 3
jmp 0x4924a5
mov ebx, esi
or ebx, 0x40010000
cmp ebx, edx
je 0x4924ab
mov ebx, esi
or ebx, 0x40020000
cmp ebx, edx
jne 0x492497
xor edx, edx
inc edx
jmp 0x4924a6
mov ebx, esi
or ebx, 0x40030000
cmp ebx, edx
jne 0x4924b7
push 2
pop edx
shl edx, cl
or dword [ebp - 4], edx
add eax, 4
inc edi
inc ecx
inc ecx
inc esi
cmp ecx, 0x20
jb 0x492468
shl edi, 8
or dword [ebp - 4], edi
pop esi
pop ebx
cmp dword [eax], 0xffffffff
pop edi
je 0x4924cc
mov eax, 0x8876086c
jmp 0x4924d6
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
leave
ret 8
Function at 0x4a4346
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x18], eax
jae 0x4a4467
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
jae 0x4a444b
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 0xc], edi
shr edi, 2
and edi, esi
mov dword [ebp - 4], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp - 4]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 0xc]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp - 4]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 0xc]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp - 4]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0x10]
add ecx, 8
dec dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov esi, 0xffc03fc0
jne 0x4a439d
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x18]
mov dword [ebp + 0xc], edx
jb 0x4a437b
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret
Function at 0x4a4733
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [ecx + 4]
mov eax, dword [eax + 0x18]
push ebp
push esi
mov esi, dword [ecx]
mov ebp, dword [esi + 0x105c]
push edi
mov edi, dword [esi + 0x1050]
imul ebp, edi
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x18]
add ebp, eax
cmp eax, ebp
mov dword [esp + 0x28], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c], ebp
jae 0x4a487a
mov edx, 0xf81f
push ebx
mov ebx, dword [esp + 0x14]
mov esi, dword [esi + 0x1058]
lea esi, [eax + esi*2]
mov dword [esp + 0x10], ebx
add edi, eax
cmp eax, esi
mov ebx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x28], esi
jae 0x4a4855
movzx ecx, word [ebx]
movzx esi, word [ebx + 2]
movzx eax, word [edi + 2]
movzx edi, word [edi]
mov ebp, ecx
mov ebx, eax
and bx, dx
and bp, dx
mov dword [esp + 0x24], ecx
and ecx, 0xffff07e0
add ebx, ebp
mov ebp, edi
and bp, dx
add ebx, ebp
mov ebp, esi
and bp, dx
lea ebx, [ebx + ebp + 0x1002]
mov ebp, eax
and ebp, 0xffff07e0
add ebp, ecx
mov ecx, edi
and ecx, 0xffff07e0
add ebp, ecx
mov ecx, esi
and ecx, 0xffff07e0
shr ebx, 2
lea ecx, [ecx + ebp + 0x40]
shr ecx, 2
xor ebx, ecx
mov ecx, dword [esp + 0x24]
and eax, edx
and ecx, edx
add eax, ecx
and edi, edx
add eax, edi
mov edi, dword [esp + 0x1c]
and esi, edx
and ebx, 0xffff07e0
lea eax, [eax + esi + 0x1002]
shr eax, 2
xor ebx, eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x10], 2
mov word [eax], bx
mov ebx, dword [esp + 0x18]
add ebx, 4
add edi, 4
cmp ebx, dword [esp + 0x28]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edi
jb 0x4a479c
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x30]
mov esi, dword [ecx + 4]
mov esi, dword [esi + 0x1050]
add dword [esp + 0x14], esi
mov esi, dword [ecx]
mov edi, dword [esi + 0x1050]
lea eax, [eax + edi*2]
cmp eax, ebp
mov dword [esp + 0x20], eax
jb 0x4a4773
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x24
ret