joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d7dfc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], edx
mov edi, eax
mov eax, dword [ebp - 4]
call fcn.00405318
xor eax, eax
push ebp
push 0x4d7e72
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004d7d6c
mov dword [ebp - 8], 0xc
lea esi, [ebp - 0x14]
mov eax, edi
call fcn.004d7d24
mov ebx, eax
xor bl, byte [esi]
mov edx, ebx
mov eax, edi
call fcn.004d7ccc
mov byte [esi], bl
inc esi
dec dword [ebp - 8]
jne 0x4d7e3c
movzx ebx, byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d7e79
lea eax, [ebp - 4]
call fcn.00404e98
ret
Function at 0x4d8b0c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4d8cf2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 0xffffffff
jle 0x4d8cae
mov eax, dword [ebp - 4]
call fcn.004da4e0
cmp ebx, eax
jge 0x4d8cae
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x118]
mov edx, ebx
call fcn.004cf26c
mov edx, dword [0x4d0c54]
call fcn.00404064
mov esi, eax
mov eax, esi
call fcn.004d1b18
test al, al
je 0x4d8ca4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov edi, dword [esi + 0x44]
test edi, edi
jne 0x4d8c98
xor eax, eax
push ebp
push 0x4d8c91
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.004d90c4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
call fcn.0041f558
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
push dword [esi + 0x34]
push dword [esi + 0x30]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
lea edx, [ebp - 0x46]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, 0x2e
mov esi, dword [eax]
call dword [esi + 0xc]
movzx eax, word [ebp - 0x2a]
movzx edx, word [ebp - 0x28]
add eax, edx
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x18]
movzx esi, word [ebp - 0x26]
mov eax, dword [ebp - 8]
mov edx, esi
call fcn.004055b8
mov eax, dword [ebp - 8]
call fcn.00405388
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
mov ecx, esi
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx eax, byte [eax + 0x28]
mov byte [ebp - 9], al
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004d8e88
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x158]
movzx edx, byte [ebp - 9]
mov byte [eax + 0x28], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8cdc
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x130]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
jne 0x4d8c90
mov eax, dword [ebp - 4]
call fcn.004d9148
ret
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.0040b218
jmp 0x4d8cdc
mov eax, dword [ebp - 8]
call fcn.00404e98
jmp 0x4d8cdc
mov dword [ebp - 0x50], ebx
mov byte [ebp - 0x4c], 0
lea eax, [ebp - 0x50]
push eax
push 0
lea edx, [ebp - 0x54]
mov eax, 0xb3
call fcn.0040a644
mov ecx, dword [ebp - 0x54]
mov dl, 1
mov eax, dword [0x4195a4]
call fcn.0040e98c
call fcn.004047ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8cf9
lea eax, [ebp - 0x54]
call fcn.00404e98
ret
Function at 0x504684
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x5046de
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00504674
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.005022cc
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00501de4
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5046e5
lea eax, [ebp - 4]
call fcn.00404e98
ret
Function at 0x50d030
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor ebx, ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x50d054
cmp eax, 0
jbe 0x50d15d
jmp 0x50d05a
jle 0x50d15d
mov eax, dword [ebp + 8]
add eax, 0xffffff04
xor ecx, ecx
mov edx, 0xf8
call fcn.004037d4
mov eax, dword [ebp + 8]
lea edx, [eax - 0x13c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 0x40
mov esi, dword [eax]
call dword [esi + 0xc]
cmp eax, 0x40
jne 0x50d15d
mov eax, dword [ebp + 8]
cmp word [eax - 0x13c], 0x5a4d
jne 0x50d15d
mov eax, dword [ebp + 8]
mov edx, dword [eax - 0x100]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
xor ecx, ecx
mov esi, dword [eax]
call dword [esi + 0x14]
mov edx, dword [ebp + 8]
cmp eax, dword [edx - 0x100]
jne 0x50d15d
mov eax, dword [ebp + 8]
lea edx, [eax - 0xfc]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 4
mov esi, dword [eax]
call dword [esi + 0xc]
cmp eax, 4
jne 0x50d15d
mov eax, dword [ebp + 8]
cmp dword [eax - 0xfc], 0x4550
jne 0x50d15d
mov eax, dword [ebp + 8]
lea edx, [eax - 0xf8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov ecx, 0x14
mov esi, dword [eax]
call dword [esi + 0xc]
cmp eax, 0x14
jne 0x50d15d
mov eax, dword [ebp + 8]
cmp word [eax - 0xf8], 0x14c
jne 0x50d15d
mov eax, dword [ebp + 8]
movzx ecx, word [eax - 0xe8]
mov eax, dword [ebp + 8]
lea edx, [eax - 0xe4]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x140]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp + 8]
movzx edx, word [edx - 0xe8]
cmp eax, edx
jne 0x50d15d
mov bl, 1
mov eax, ebx
pop esi
pop ebx
pop ebp
ret

Function at 0x50d7ac
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor edx, edx
mov eax, dword [ebp + 8]
movzx eax, word [eax - 0xf6]
test ax, ax
jbe 0x50d88c
mov edx, dword [ebp + 8]
movzx eax, ax
dec eax
test eax, eax
jl 0x50d88a
inc eax
mov dword [ebp - 4], eax
xor ebx, ebx
mov esi, ebx
add esi, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8 + 0xc]
xor edx, edx
test eax, 0x20000000
je 0x50d822
test eax, 0x40000000
je 0x50d80e
test eax, 0x80000000
je 0x50d809
or edx, 0x40
jmp 0x50d849
or edx, 0x20
jmp 0x50d849
test eax, 0x80000000
je 0x50d81d
or edx, 0x80
jmp 0x50d849
or edx, 0x10
jmp 0x50d849
test eax, 0x40000000
je 0x50d83a
test eax, 0x80000000
je 0x50d835
or edx, 4
jmp 0x50d849
or edx, 2
jmp 0x50d849
test eax, 0x80000000
je 0x50d846
or edx, 8
jmp 0x50d849
or edx, 1
test eax, 0x4000000
je 0x50d856
or edx, 0x200
mov eax, dword [ebp + 8]
add eax, 0xfffffebc
push eax
push edx
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8 + 8]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax + esi*8]
push eax
call sub.kernel32.dll_VirtualProtect
inc ebx
dec dword [ebp - 4]
jne 0x50d7dc
mov dl, 1
mov eax, edx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x5108d4
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
push ecx
mov ebx, 0x548528
test edx, edx
jne 0x5108e7
xor eax, eax
jmp 0x5109fc
mov dword [esp], 1
cmp byte [esp], 0
je 0x510904
push ecx
push edx
push eax
call fcn.00510a00
add esp, 0xc
jmp 0x5109fc
push ecx
push edx
push eax
call fcn.00510cc0
add esp, 0xc
jmp 0x5109fc
pop edx
pop esi
pop ebx
ret
Function at 0x51256c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x3c]
sub eax, dword [ebx + 0x74]
sub eax, dword [ebx + 0x6c]
mov dword [ebp - 8], eax
jmp 0x5125a7
mov edx, dword [ebx + 0x2c]
sub edx, 0x106
add edx, esi
cmp edx, dword [ebx + 0x6c]
ja 0x512628
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov edi, esi
add edx, edi
push edx
push eax
call fcn.0050fc2c
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], edi
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
cmp esi, dword [ebp - 4]
ja 0x5125f5
mov cx, word [ebp - 4]
sub cx, si
jmp 0x5125f7
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x5125de
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
cmp esi, dword [ebp - 4]
ja 0x51261d
mov cx, word [ebp - 4]
sub cx, si
jmp 0x51261f
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x512606
add dword [ebp - 8], esi
mov edi, dword [ebx]
cmp dword [edi + 4], 0
je 0x51268a
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebx + 0x38]
add edx, dword [ebx + 0x6c]
add edx, dword [ebx + 0x74]
push edx
push edi
call fcn.00512238
add esp, 0xc
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x512675
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x6c]
movzx eax, byte [ecx + eax]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x51268a
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x51257b
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x51a1bc
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405318
xor eax, eax
push ebp
push 0x51a237
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040acbc
mov eax, dword [ebp - 8]
call fcn.00405328
push eax
call sub.IMAGEHLP.DLL_MakeSureDirectoryPathExists
push 0
mov eax, dword [ebp - 4]
call fcn.00405328
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
call fcn.00405328
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51a23e
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404ebc
ret
Function at 0x51c850
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor ebx, ebx
mov byte [ebp - 0x12], 0
xor eax, eax
mov edx, dword [ebp - 0xc]
dec edx
test edx, edx
jl 0x51c92e
inc edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], 0
cmp eax, dword [ebp + 8]
jge 0x51c92e
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
movzx edx, byte [edx + ecx]
mov byte [ebp - 0x13], 0xab
movzx ecx, byte [ebp - 0x10]
add byte [ebp - 0x13], cl
xor dl, byte [ebp - 0x13]
lea ecx, [ebx + 2]
movzx esi, dl
shr esi, cl
mov ecx, esi
or cl, byte [ebp - 0x12]
and cl, 0x3f
mov byte [ebp - 0x11], cl
lea ecx, [ebx + 2]
push ecx
mov ecx, 8
pop esi
sub ecx, esi
movzx edx, dl
shl edx, cl
shr edx, 2
and dl, 0x3f
mov byte [ebp - 0x12], dl
add ebx, 2
cmp ebx, 6
jge 0x51c8e6
movzx edx, byte [ebp - 0x11]
add dl, 0x3c
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], dl
inc eax
jmp 0x51c922
mov edx, dword [ebp + 8]
dec edx
cmp eax, edx
jge 0x51c90e
movzx edx, byte [ebp - 0x11]
add dl, 0x3c
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], dl
movzx edx, byte [ebp - 0x12]
add dl, 0x3c
mov ecx, dword [ebp - 8]
mov byte [ecx + eax + 1], dl
add eax, 2
jmp 0x51c91c
movzx edx, byte [ebp - 0x11]
add dl, 0x3c
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], dl
inc eax
xor ebx, ebx
mov byte [ebp - 0x12], 0
inc dword [ebp - 0x10]
dec dword [ebp - 0x18]
jne 0x51c880
test ebx, ebx
jle 0x51c940
movzx edx, byte [ebp - 0x12]
add dl, 0x3c
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], dl
inc eax
mov edx, dword [ebp - 8]
mov byte [edx + eax], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x51c950
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov esi, 2
xor eax, eax
xor edi, edi
mov byte [ebp - 0xe], 0
mov byte [ebp - 0xd], 0
mov edx, dword [ebp - 0xc]
dec edx
test edx, edx
jl 0x51ca0c
inc edx
mov dword [ebp - 0x14], edx
xor edx, edx
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + edx]
sub ecx, 0x3c
js 0x51c9a0
mov ecx, dword [ebp - 4]
movzx ecx, byte [ecx + edx]
sub cl, 0x3c
mov byte [ebp - 0xd], cl
jmp 0x51c9a4
xor edi, edi
jmp 0x51ca0c
cmp edi, dword [ebp + 8]
jge 0x51ca0c
lea ecx, [eax + 6]
cmp ecx, 8
jl 0x51c9e8
mov ecx, 6
sub ecx, esi
movzx eax, byte [ebp - 0xd]
and al, 0x3f
movzx eax, al
shr eax, cl
or al, byte [ebp - 0xe]
mov cl, 0xab
mov ebx, edi
add cl, bl
xor al, cl
mov ecx, dword [ebp - 8]
mov byte [ecx + edi], al
inc edi
xor eax, eax
cmp esi, 6
jge 0x51c9e1
add esi, 2
jmp 0x51c9e8
mov esi, 2
jmp 0x51ca02
mov ecx, esi
movzx ebx, byte [ebp - 0xd]
shl bl, cl
and bl, byte [esi + 0x54c676]
mov byte [ebp - 0xe], bl
mov ecx, 8
sub ecx, esi
add eax, ecx
inc edx
dec dword [ebp - 0x14]
jne 0x51c985
mov eax, dword [ebp - 8]
mov byte [eax + edi], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5206b8
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x29c], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00405318
xor eax, eax
push ebp
push 0x520802
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x198]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ecx, ecx
push ebp
push 0x5207da
push dword fs:[ecx]
mov dword fs:[ecx], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x298]
mov edx, dword [ebp - 4]
call fcn.0040b098
lea eax, [ebp - 0x298]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x5207c3
mov edx, dword [eax + 0xc]
test edx, edx
je 0x5207bd
mov ebx, dword [edx]
test ebx, ebx
je 0x5207b7
lea eax, [ebp - 0x29c]
push eax
movzx eax, byte [ebx]
mov dword [ebp - 0x2bc], eax
mov byte [ebp - 0x2b8], 0
movzx eax, byte [ebx + 1]
mov dword [ebp - 0x2b4], eax
mov byte [ebp - 0x2b0], 0
movzx eax, byte [ebx + 2]
mov dword [ebp - 0x2ac], eax
mov byte [ebp - 0x2a8], 0
movzx eax, byte [ebx + 3]
mov dword [ebp - 0x2a4], eax
mov byte [ebp - 0x2a0], 0
lea edx, [ebp - 0x2bc]
mov ecx, 3
mov eax, 0x52081c
call fcn.0040baa4
mov edx, dword [ebp - 0x29c]
mov eax, esi
call fcn.00404eec
mov byte [ebp - 5], 1
jmp 0x5207c7
mov byte [ebp - 5], 0
jmp 0x5207c7
mov byte [ebp - 5], 0
jmp 0x5207c7
mov byte [ebp - 5], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5207e1
call sub.wsock32.dll_WSACleanup
ret

Function at 0x5217f0
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
mov eax, dword [0x54c6e4]
mov eax, dword [eax]
call fcn.00405328
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingA
mov esi, eax
mov dword [ebx + 0x3c8], esi
push 0
push 0
push 0
push 0xf001f
push esi
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
mov dword [ebx + 0x3cc], edi
test edi, edi
je 0x521845
mov eax, ebx
call fcn.0045e2e4
mov edx, dword [ebx + 0x3cc]
mov dword [edx], eax
pop edi
pop esi
pop ebx
ret

Function at 0x521e54
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebp, edx
mov edi, eax
mov ebx, edi
mov eax, ebx
test eax, eax
je 0x521e69
sub eax, 4
mov eax, dword [eax]
mov edx, ebp
xchg edx, eax
call fcn.004055b8
mov eax, ebx
test eax, eax
je 0x521e7c
sub eax, 4
mov eax, dword [eax]
mov esi, eax
test esi, esi
jle 0x521eb2
mov ebx, 1
mov eax, ebp
call fcn.00405388
lea eax, [eax + ebx - 1]
push eax
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
movzx eax, byte [edx + 0x54c680]
movzx edx, byte [edi + ebx - 1]
xor al, dl
pop edx
mov byte [edx], al
inc ebx
dec esi
jne 0x521e87
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4046d8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40473e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403c00
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402ac4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404728
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404745
lea eax, [ebp - 0x10]
call fcn.004039b8
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00403d88
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x405955
test al, 0x10
jne 0x405959
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x4065b0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4065e9
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403aa8
jmp 0x4065f2
mov eax, ebx
mov edx, esi
call fcn.00403a0c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4065fc
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40661d
mov al, byte [esp]
jmp 0x40661f
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406cb4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406b1c
mov eax, dword [0x56bc60]
cmp byte [eax], 0
je 0x406d30
mov eax, dword [0x56bbbc]
call fcn.00402a40
call fcn.00402968
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405a84
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406d78
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x406d66
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x56bb9c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x56c660]
call fcn.004040a8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x408548
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, 0x408508
call fcn.00404950
xor eax, eax
push ebp
push 0x408653
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x408668
call fcn.0040593c
test al, al
jne 0x40857e
mov eax, 0x408668
call fcn.00405a68
mov eax, 0x40867c
call fcn.0040593c
test al, al
je 0x40859f
push 0
push 0x408688
push 0x40868c
push 0
call sub.user32.dll_MessageBoxA_1
mov edx, 0x409294
mov eax, 0x56c798
mov ecx, 0xda2a8
call fcn.00403aa8
mov edx, dword [0x56c798]
mov eax, 0x408698
call fcn.0040832c
mov eax, 0x40867c
call fcn.0040593c
test al, al
je 0x4085e4
push 0
push 0x408688
push 0x4086b0
push 0
call sub.user32.dll_MessageBoxA_1
mov edx, 0x4e353c
mov eax, 0x56c798
mov ecx, 0x88614
call fcn.00403aa8
mov edx, dword [0x56c798]
mov eax, 0x4086bc
call fcn.0040832c
mov eax, 0x40867c
call fcn.0040593c
test al, al
je 0x408629
push 0
push 0x408688
push 0x4086d0
push 0
call sub.user32.dll_MessageBoxA_1
mov edx, 0x4086bc
mov eax, 0x408698
call fcn.004083ac
push 0
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40865a
ret

Function at 0x47d120
Capabilities:
Encrypt data using rc4 prga

Disassembly:
clc
sub esi, 0x9adb595e
bsf di, si
add di, 0x1681
shrd bx, di, cl
neg esi
not edi
adc dl, 0xbb
ror di, 0xe
lea ebp, [esp + 8]
shl ebx, 0x14
movsx di, cl
sub esp, 0xb8
stc
mov edi, esp

Function at 0x47d1c5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
bts dx, bp
lea edx, [ebp*8 - 0x57c0f186]
mov ebx, esi
dec al
add esi, dword [ebp]
add ebp, 4
mov byte [esp + 4], cl
mov word [esp], di
pushal
lea esp, [esp + 0x2c]
jmp 0x47d153
Function at 0x55e820
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd0000]
push edi
jmp 0x55e83a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x55e841
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55e830
mov eax, 1
add ebx, ebx
jne 0x55e853
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x55e864
jne 0x55e883
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55e883
dec eax
add ebx, ebx
jne 0x55e870
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x55e848
add ebx, ebx
jne 0x55e87f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x55e8d5
xor ecx, ecx
sub eax, 3
jb 0x55e89b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x55e90a
sar eax, 1
mov ebp, eax
jmp 0x55e8a6
add ebx, ebx
jne 0x55e8a6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55e874
inc ecx
add ebx, ebx
jne 0x55e8b4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x55e874
add ebx, ebx
jne 0x55e8c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x55e8b6
jne 0x55e8d2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x55e8b6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x55e8f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x55e8e6
jmp 0x55e836
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x55e8f4
add edi, ecx
jmp 0x55e836
pop esi
mov edi, esi
mov ecx, 0x8e0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x55e912
cmp byte [edi], 5
jne 0x55e912
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 0x55e917
lea edi, [esi + 0x15c000]
mov eax, dword [edi]
or eax, eax
je 0x55e98f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15f8f0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x15f9a4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x55e944
mov ecx, edi
jns 0x55e973
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 + 0x15f9a8]
or eax, eax
je 0x55e989
mov dword [ebx], eax
add ebx, 4
jmp 0x55e961
call dword [esi + 0x15f9b8]
mov ebp, dword [esi + 0x15f9ac]
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 0x55e9c3
sub esp, 0xffffff80
jmp 0x40dcf5