joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b2c08
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 0x4b2dde
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x50fde0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x4b2dde
test cl, 0x48
je 0x4b2c73
cmp byte [eax + 5], 0xa
je 0x4b2c73
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 0x4b2cc5
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x4b2cad
call fcn.004abe3e
mov dword [eax], 9
call fcn.004abe47
mov dword [eax], esi
jmp 0x4b2cbd
cmp eax, 0x6d
je 0x4b2dde
push eax
call fcn.004abe50
pop ecx
or eax, 0xffffffff
jmp 0x4b2de0
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x4b2dd9
test eax, eax
je 0x4b2cec
cmp byte [ebx], 0xa
jne 0x4b2cec
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x4b2cf5
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 0x4b2dd3
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x4b2dc3
cmp al, 0xd
je 0x4b2d27
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x4b2db5
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4b2d41
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4b2d3c
add dword [ebp + 0x10], 2
jmp 0x4b2d95
mov dword [ebp + 0x10], eax
jmp 0x4b2db1
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 0x4b2d69
call dword [sym.imp.KERNEL32.DLL_GetLastError]
test eax, eax
jne 0x4b2db1
cmp dword [ebp - 0xc], 0
je 0x4b2db1
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4b2d8a
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4b2d95
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x4b2db4
cmp ebx, dword [ebp + 0xc]
jne 0x4b2d9a
cmp byte [ebp - 1], 0xa
jne 0x4b2d9a
mov byte [ebx], 0xa
jmp 0x4b2db4
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004ba3b8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4b2db5
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4b2d0b
jmp 0x4b2dd3
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x4b2dd3
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 0x4b2de0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b2e90
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x508e4c]
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 0x4b2ecc
xor eax, eax
jmp 0x4b3036
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 + 0x50fde0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x4b2f0a
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.004ba3b8
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4b2fa4
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x4b3007
jmp 0x4b2f2e
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 0x4b2f69
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4b2f5a
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 0x4b2f3a
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 0x4b2fc8
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x4b2fd1
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x4b2f2c
jmp 0x4b2fd1
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 0x4b2fc8
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x4b2fd1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x4b3031
cmp dword [ebp - 0x68], eax
je 0x4b3004
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x4b2ff9
call fcn.004abe3e
mov dword [eax], 9
call fcn.004abe47
mov dword [eax], esi
jmp 0x4b302c
push dword [ebp - 0x68]
call fcn.004abe50
pop ecx
jmp 0x4b302c
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4b3019
cmp byte [edi], 0x1a
jne 0x4b3019
xor eax, eax
jmp 0x4b3034
call fcn.004abe3e
mov dword [eax], 0x1c
call fcn.004abe47
and dword [eax], 0
or eax, 0xffffffff
jmp 0x4b3034
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.004a8b15
add ebp, 0x3a4
leave
ret
Function at 0x4b90a0
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 0x4b90ce
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 0x4b90d5
cmp ebx, dword [eax + 4]
jae 0x4b90d5
xor eax, eax
jmp 0x4b92c5
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x4b90e6
xor eax, eax
inc eax
jmp 0x4b92c4
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x4b90fc
cmp ecx, edx
jae 0x4b9241
cmp dword [eax + 4], 0
je 0x4b9105
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x4b90ed
cmp dword [ebp + 8], 0
je 0x4b9127
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4b9241
cmp eax, esi
jae 0x4b9241
mov eax, dword [0x50fb10]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x4b914c
cmp dword [esi*4 + 0x50fb18], edi
je 0x4b9245
inc esi
cmp esi, eax
jl 0x4b913a
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_VirtualQuery]
test eax, eax
je 0x4b92c1
cmp dword [ebp - 8], 0x1000000
jne 0x4b92c1
test byte [ebp - 0xc], 0xcc
je 0x4b91ca
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4b92c1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4b92c1
cmp word [eax + 0x18], 0x10b
jne 0x4b92c1
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4b92c1
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4b91ca
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4b91ca
test byte [ecx + 0x27], 0x80
jne 0x4b9241
push 1
push 0x50fb58
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x4b90de
mov ecx, dword [0x50fb10]
test ecx, ecx
mov edx, ecx
jle 0x4b91fe
lea eax, [ecx*4 + 0x50fb14]
cmp dword [eax], edi
je 0x4b91fe
dec edx
sub eax, 4
test edx, edx
jg 0x4b91f2
test edx, edx
jne 0x4b922f
push 0xf
pop ebx
cmp ecx, ebx
jg 0x4b920b
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4b9223
lea eax, [edx*4 + 0x50fb18]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4b9211
cmp ecx, 0x10
jge 0x4b922f
inc ecx
mov dword [0x50fb10], ecx
push 0
push 0x50fb58
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
jmp 0x4b90de
xor eax, eax
jmp 0x4b92c4
test esi, esi
jle 0x4b90de
mov ebx, dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
push 1
push 0x50fb58
call ebx
test eax, eax
jne 0x4b90de
cmp dword [esi*4 + 0x50fb18], edi
je 0x4b929b
mov eax, dword [0x50fb10]
lea esi, [eax - 1]
test esi, esi
jl 0x4b9289
cmp dword [esi*4 + 0x50fb18], edi
je 0x4b9285
dec esi
jns 0x4b9279
test esi, esi
jge 0x4b9299
cmp eax, 0x10
jge 0x4b9294
inc eax
mov dword [0x50fb10], eax
lea esi, [eax - 1]
jmp 0x4b929b
je 0x4b92b3
xor ecx, ecx
test esi, esi
jl 0x4b92b3
lea eax, [ecx*4 + 0x50fb18]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4b92a1
push 0
push 0x50fb58
call ebx
jmp 0x4b90de
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4b9b0c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x50fb60], ebx
push esi
push edi
jne 0x4b9b8c
push 0x4c8804
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4b9bc7
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push 0x4f0ba4
push edi
call esi
test eax, eax
mov dword [0x50fb60], eax
je 0x4b9bc7
push 0x4f0b94
push edi
call esi
push 0x4f0b80
push edi
mov dword [0x50fb64], eax
call esi
cmp dword [0x50f824], 2
mov dword [0x50fb68], eax
jne 0x4b9b8c
push 0x4f0b64
push edi
call esi
test eax, eax
mov dword [0x50fb70], eax
je 0x4b9b8c
push 0x4f0b4c
push edi
call esi
mov dword [0x50fb6c], eax
mov eax, dword [0x50fb6c]
test eax, eax
je 0x4b9bd1
call eax
test eax, eax
je 0x4b9bb8
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x50fb70]
test eax, eax
je 0x4b9bb8
test byte [ebp - 8], 1
jne 0x4b9bd1
cmp dword [0x50f830], 4
jb 0x4b9bcb
or byte [ebp + 0x12], 0x20
jmp 0x4b9bf0
xor eax, eax
jmp 0x4b9c00
or byte [ebp + 0x12], 4
jmp 0x4b9bf0
mov eax, dword [0x50fb64]
test eax, eax
je 0x4b9bf0
call eax
mov ebx, eax
test ebx, ebx
je 0x4b9bf0
mov eax, dword [0x50fb68]
test eax, eax
je 0x4b9bf0
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x50fb60]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4bbf22
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x4bbf3b
or eax, 0xffffffff
jmp 0x4bbf9c
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x4bbf98
push 0x3d
push esi
call fcn.004bcd38
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4bbf98
cmp esi, eax
je 0x4bbf98
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x50f844]
sete cl
cmp eax, dword [0x50f848]
mov dword [ebp - 4], ecx
jne 0x4bbf7e
mov edi, eax
call fcn.004bbec1
mov dword [0x50f844], eax
cmp eax, ebx
jne 0x4bbfd7
cmp dword [ebp + 0xc], ebx
je 0x4bbfa0
cmp dword [0x50f84c], ebx
je 0x4bbfa0
call fcn.004b667b
test eax, eax
je 0x4bbfd7
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x4bbfa9
xor eax, eax
jmp 0x4bbf9b
push 4
call fcn.004a957a
cmp eax, ebx
pop ecx
mov dword [0x50f844], eax
je 0x4bbf98
mov dword [eax], ebx
cmp dword [0x50f84c], ebx
jne 0x4bbfd7
push 4
call fcn.004a957a
cmp eax, ebx
pop ecx
mov dword [0x50f84c], eax
je 0x4bbf98
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x50f844]
sub edi, esi
push esi
call fcn.004bbe74
mov edi, eax
test edi, edi
pop ecx
jl 0x4bc03e
cmp dword [ebx], 0
je 0x4bc03e
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.004a9dd4
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x4bc01e
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x4bc07f
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x4bc015
mov eax, edi
shl eax, 2
push eax
push dword [0x50f844]
call fcn.004aae2a
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x4bc07f
jmp 0x4bc07a
cmp dword [ebp - 4], 0
jne 0x4bc0e6
test edi, edi
jge 0x4bc04e
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x50f844]
call fcn.004aae2a
test eax, eax
pop ecx
pop ecx
je 0x4bbf98
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x50f844], eax
cmp dword [ebp + 0xc], 0
je 0x4bc0d1
push esi
call fcn.004ad9e0
inc eax
inc eax
push eax
call fcn.004a957a
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4bc0d1
push esi
push edi
call fcn.004aff90
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.DLL_SetEnvironmentVariableA]
test eax, eax
jne 0x4bc0ca
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.004a9dd4
pop ecx
cmp dword [ebp - 4], 0
je 0x4bc0de
push esi
call fcn.004a9dd4
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4bbf9b
push esi
call fcn.004a9dd4
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x4bbfa5
Function at 0x4bc0f8
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4f0c78
call fcn.004ad480
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x50fb7c], edi
jne 0x4bc13c
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x4bc127
mov dword [0x50fb7c], ebx
jmp 0x4bc13c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x4bc13c
mov dword [0x50fb7c], 2
mov eax, dword [0x50fb7c]
cmp eax, ebx
jne 0x4bc15c
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
jmp 0x4bc21f
cmp eax, 2
je 0x4bc165
cmp eax, edi
jne 0x4bc18d
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4bc178
mov eax, dword [0x50fad4]
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 0x4bc194
xor eax, eax
jmp 0x4bc21f
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004a91d0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4bc1c7
cmp esi, edi
jne 0x4bc1dd
push dword [ebp - 0x20]
call fcn.004a957a
pop ecx
mov esi, eax
cmp esi, edi
je 0x4bc18d
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 0x4bc210
cmp dword [ebp + 0x14], edi
jne 0x4bc1fa
push edi
push edi
jmp 0x4bc200
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 0x4bc21c
push esi
call fcn.004a9dd4
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004ad4bb
ret
Function at 0x4bc228
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x4f0c88
call fcn.004ad480
xor esi, esi
cmp dword [0x50fb80], esi
jne 0x4bc26c
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
test eax, eax
je 0x4bc257
mov dword [0x50fb80], edi
jmp 0x4bc26c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x78
jne 0x4bc26c
mov dword [0x50fb80], 2
mov eax, dword [0x50fb80]
cmp eax, 2
je 0x4bc34d
cmp eax, esi
je 0x4bc34d
cmp eax, 1
jne 0x4bc2b1
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4bc29a
mov eax, dword [0x50fad4]
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 0x4bc2b8
xor eax, eax
jmp 0x4bc35f
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004a91d0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4bc2ee
cmp edi, esi
jne 0x4bc309
lea eax, [ebx + ebx]
push eax
call fcn.004a957a
pop ecx
mov edi, eax
cmp edi, esi
je 0x4bc2b1
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 0x4bc33c
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4bc326
push esi
push esi
jmp 0x4bc32c
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 0x4bc348
push edi
call fcn.004a9dd4
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4bc35f
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.004ad4bb
ret
Function at 0x4bc904
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004a91d0
mov eax, dword [0x508e4c]
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.004b30f7
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4bca39
push 2
push esi
push dword [ebp + 8]
call fcn.004b30f7
add esp, 0xc
cmp eax, ebx
je 0x4bca39
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4bc9d9
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004b86f0
push 0x8000
push dword [ebp + 8]
call fcn.004abcb5
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x4bc98f
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004b2e90
add esp, 0xc
cmp eax, 0xffffffff
je 0x4bc9af
sub edi, eax
test edi, edi
jg 0x4bc987
jmp 0x4bc9c7
call fcn.004abe47
cmp dword [eax], 5
jne 0x4bc9c4
call fcn.004abe3e
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004abcb5
pop ecx
pop ecx
jmp 0x4bca21
jge 0x4bca21
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004b30f7
push dword [ebp + 8]
call fcn.004b6806
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 0x4bca21
call fcn.004abe3e
mov dword [eax], 0xd
call fcn.004abe47
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.004b30f7
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4bca3b
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8b15
leave
ret
Function at 0x4ac3b8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [edi + 0x2c]
push esi
mov esi, dword [edi + 0x3c]
sub esi, dword [edi + 0x74]
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x2c]
lea ecx, [ebx + ecx - 0x106]
sub esi, eax
cmp eax, ecx
jb 0x4ac43d
mov eax, dword [edi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.00486fe0
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
add esp, 0xc
sub dword [edi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4ac400
mov eax, dword [edi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x4ac422
add esi, ebx
mov eax, dword [edi]
cmp dword [eax + 4], 0
je 0x4ac498
mov ecx, dword [edi + 0x74]
add ecx, dword [edi + 0x6c]
push esi
add ecx, dword [edi + 0x38]
mov esi, eax
push ecx
call fcn.004ac108
add dword [edi + 0x74], eax
mov esi, dword [edi + 0x74]
cmp esi, 3
pop ecx
pop ecx
jb 0x4ac484
mov eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [edi + 0x58]
mov dword [edi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [edi + 0x54]
mov dword [edi + 0x48], eax
cmp esi, 0x106
jae 0x4ac498
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x4ac3c1
pop esi
pop ebx
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x684670
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1b6000]
push edi
jmp 0x68468a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x684691
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x684680
mov eax, 1
add ebx, ebx
jne 0x6846a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x6846b4
jne 0x6846d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6846d3
dec eax
add ebx, ebx
jne 0x6846c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x684698
add ebx, ebx
jne 0x6846cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x684725
xor ecx, ecx
sub eax, 3
jb 0x6846eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x68475a
sar eax, 1
mov ebp, eax
jmp 0x6846f6
add ebx, ebx
jne 0x6846f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6846c4
inc ecx
add ebx, ebx
jne 0x684704
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x6846c4
add ebx, ebx
jne 0x684711
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x684706
jne 0x684722
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x684706
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x684744
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x684736
jmp 0x684686
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x684744
add edi, ecx
jmp 0x684686
pop esi
mov edi, esi
mov ecx, 0xd73d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x684762
cmp byte [edi], 0x34
jne 0x684762
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x684767
lea edi, [esi + 0x275000]
mov eax, dword [edi]
or eax, eax
je 0x6847df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x284000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x284124]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x684794
mov ecx, edi
jns 0x6847c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x28412c]
or eax, eax
je 0x6847d9
mov dword [ebx], eax
add ebx, 4
jmp 0x6847b1
call dword [esi + 0x284128]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x684810
cmp al, 0xef
ja 0x684803
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x6847e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x6847f2
mov ebp, dword [esi + 0x284130]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x684844
sub esp, 0xffffff80
jmp 0x544703