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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4969d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x41c], ecx
lea ecx, [ebp - 0x40c]
push edi
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x414], 0
mov edi, 0x400
jmp 0x447236
mov eax, dword [ebp - 0x410]
lea edx, [ebp - 0x40c]
sub ecx, edx
mov dword [ebp - 0x424], ecx
je 0x4472a0
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x44]
mov esi, eax
cmp edx, dword [ecx + 0x40]
jb 0x447258
call fcn.0042ae60
mov eax, dword [ebp - 0x424]
mov ebx, dword [esi + 8]
push eax
lea ecx, [ebp - 0x40c]
push ecx
push esi
call fcn.00430a20
mov dword [ebx], eax
mov dword [ebx + 8], 4
add dword [esi + 8], 0x10
inc dword [ebp - 0x414]
lea eax, [ebp - 0x418]
add esp, 0xc
lea edx, [ebp - 0x40c]
push eax
mov dword [ebp - 0x418], edx
call fcn.0041e840
add esp, 4
mov ebx, dword [ebp + 0xc]
cmp edi, ebx
jbe 0x4472a9
mov edi, ebx
mov ecx, dword [ebp - 0x41c]
push ecx
push edi
lea edx, [ebp - 0x40c]
push 1
push edx
call fcn.00460335
mov ecx, dword [ebp - 0x418]
add ecx, eax
add esp, 0x10
sub ebx, eax
mov dword [ebp - 0x418], ecx
mov dword [ebp + 0xc], ebx
je 0x4472df
cmp eax, edi
je 0x447230
lea eax, [ebp - 0x40c]
sub ecx, eax
mov edi, ecx
je 0x447339
mov eax, dword [ebp - 0x410]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x44]
mov esi, eax
cmp edx, dword [ecx + 0x40]
jb 0x447303
call fcn.0042ae60
mov ebx, dword [esi + 8]
push edi
lea eax, [ebp - 0x40c]
push eax
push esi
call fcn.00430a20
mov dword [ebx], eax
mov dword [ebx + 8], 4
add dword [esi + 8], 0x10
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x40c]
add esp, 0xc
inc dword [ebp - 0x414]
mov dword [ebp - 0x418], ecx
mov eax, dword [ebp - 0x414]
mov esi, dword [ebp - 0x410]
call fcn.0041ba50
mov dword [ebp - 0x414], 1
test ebx, ebx
je 0x4473b6
mov edi, dword [ebp - 0x420]
mov esi, dword [edi + 8]
mov eax, dword [esi - 8]
sub esi, 0x10
add eax, 0xfffffffd
cmp eax, 4
ja case.0x44736f.6
jmp dword [eax*4 + 0x4473cc]
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
jmp 0x44739f
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
jmp 0x44739f
mov eax, dword [esi]
call fcn.00429280
jmp 0x44739f
call fcn.0042b090
test eax, eax
je 0x44739d
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
jmp 0x44739f
xor eax, eax
test eax, eax
jne 0x4473b6
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458763
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00458763
mov esp, ebp
pop ebp
ret
Function at 0x449f00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov esi, dword [eax*4 + 0x4800f8]
mov eax, esi
mov dword [esp + 0xc], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x449f28
sub eax, edx
mov edi, eax
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0x14], edi
mov edx, edi
cmp edi, ecx
jb 0x449f68
movzx eax, byte [esi + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
mov esi, dword [esp + 0xc]
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x449f45
mov dword [esp + 0x14], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x449fe2
lea ecx, [ecx]
cmp dword [eax + 0xc], edi
jne 0x449fdc
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x449fa4
nop
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x449fd4
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x449f90
test ecx, ecx
je 0x44a053
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x449fd4
cmp ecx, 1
jbe 0x44a053
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x449fd4
cmp ecx, 2
jbe 0x44a053
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x44a053
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x449f80
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, ebx
call fcn.00430950
add esp, 8
mov ecx, dword [esp + 0x10]
or byte [eax + 5], 0x20
lea edx, [ecx + 1]
inc ecx
mov byte [eax + 6], dl
mov dword [esp + 0x10], ecx
cmp ecx, 0x1f
jl 0x449f14
mov ecx, dword [str.type]
test ecx, ecx
je 0x44a04c
mov esi, 0x4801d0
mov bl, 0x2d
mov edi, edi
mov eax, ecx
add esi, 4
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x44a028
sub eax, edi
push eax
mov eax, dword [ebp + 8]
push ecx
push eax
call fcn.00430a20
or byte [eax + 5], 0x20
mov byte [eax + 6], bl
mov ecx, dword [esi]
add esp, 0xc
test ecx, ecx
jne 0x44a020
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov cl, byte [eax + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx edx, cl
and edx, 3
not ebx
test bl, dl
je 0x449ff1
xor cl, 3
mov byte [eax + 5], cl
jmp 0x449ff1
Function at 0x44b860
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, eax
mov eax, dword [ebx]
push edi
push esi
push eax
mov eax, ebx
call fcn.0044ad40
mov eax, dword [esi]
mov ecx, dword [ebx + 0x34]
add eax, 0x10
call fcn.0041c920
mov esi, eax
push 0x483ed8
push esi
call fcn.0045ab87
mov edi, eax
add esp, 0x10
mov dword [ebp - 8], edi
test edi, edi
jne 0x44b8f5
mov ecx, dword [ebx + 0x34]
push esi
push str.Include_file_open_failed_n___s__n
push ecx
call fcn.004311c0
mov esi, dword [ebx + 0x34]
mov dword [ebp - 4], eax
mov eax, dword [esi + 8]
lea ecx, [eax - 0x10]
add esp, 0xc
cmp ecx, eax
jae 0x44b8df
lea edx, [ecx - 0x10]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [edx + 0x18]
mov dword [edx + 8], eax
add ecx, 0x10
add edx, 0x10
cmp ecx, dword [esi + 8]
jb 0x44b8c4
mov ecx, dword [ebp - 4]
add dword [esi + 8], 0xfffffff0
push 0x131
push ecx
push ebx
call fcn.0044a2b0
add esp, 0xc
mov eax, dword [ebx + 0x34]
add dword [eax + 8], 0xfffffff0
mov edx, dword [ebx + 0x3c]
mov dword [edx + 4], 0
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax + 8]
mov edx, dword [eax]
mov eax, dword [ebx + 0x34]
push 0x400
push ecx
push edx
push eax
call fcn.0044d340
mov ecx, dword [ebx + 0x3c]
mov dword [ecx], eax
mov edx, dword [ebx + 0x3c]
mov dword [edx + 8], 0x400
mov esi, dword [ebx + 0x3c]
mov eax, dword [esi]
add eax, dword [esi + 4]
push edi
push 0x400
push 1
push eax
call fcn.00460335
add esp, 0x20
test eax, eax
je 0x44b9ca
mov edi, edi
add dword [esi + 4], eax
mov ecx, dword [esi + 4]
mov eax, dword [esi + 8]
add ecx, 0x400
cmp ecx, eax
jbe 0x44b9b0
lea edi, [eax + eax]
cmp edi, 0x7ffffffe
jb 0x44b97e
push 0
push str.lexical_element_too_long
push ebx
call fcn.0044a2b0
add esp, 0xc
lea ecx, [edi + 1]
cmp ecx, 0xfffffffd
ja 0x44b99c
mov edx, dword [esi + 8]
mov eax, dword [esi]
mov ecx, dword [ebx + 0x34]
push edi
push edx
push eax
push ecx
call fcn.0044d340
add esp, 0x10
jmp 0x44b9a8
mov edx, dword [ebx + 0x34]
push edx
call fcn.0044d320
add esp, 4
mov dword [esi + 8], edi
mov edi, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [esi]
add eax, dword [esi + 4]
push edi
push 0x400
push 1
push eax
call fcn.00460335
add esp, 0x10
test eax, eax
jne 0x44b950
push edi
call fcn.0045ae85
mov ecx, dword [ebx + 0x3c]
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
add esp, 4
call fcn.0044a3b0
mov ecx, dword [ebp + 8]
pop edi
pop esi
mov dword [ecx], eax
mov eax, 0x131
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44d800
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
test esi, esi
je 0x44d83b
push 0x49a8e0
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, esi
call fcn.0044d490
mov edi, eax
test edi, edi
je 0x44d83b
inc dword [edi + 0x14]
push 0x49a8e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x44d85f
test esi, esi
je 0x44d857
push 0x49a8e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x44d874
test esi, esi
jmp 0x44d96a
mov edx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x34]
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x44d8a9
mov ecx, dword [ebx + 0x50]
push 4
push 0x2000
push ecx
push eax
call esi
mov edi, eax
test edi, edi
je 0x44d966
push 0x1c
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov edx, dword [ebx + 0x50]
push 0x1000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [ebx + 0x54]
push 4
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x54]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 4], eax
push edx
push ecx
push eax
call fcn.00463c90
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push ebx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edi
call fcn.0044d4d0
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x44d92d
push eax
mov eax, esi
call fcn.0044d650
add esp, 4
push esi
call fcn.0044d6e0
add esp, 4
test eax, eax
je 0x44d95f
push esi
call fcn.0044d580
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
add esp, 4
mov ebx, 1
test eax, eax
je 0x44d983
add eax, edi
je 0x44d95f
push 0
push ebx
push edi
call eax
test eax, eax
jne 0x44d980
mov eax, esi
call fcn.0044dad0
cmp dword [ebp + 0xc], 0
je 0x44d977
push 0x49a8e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], ebx
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x14], ebx
test eax, eax
je 0x44d9b4
push eax
call fcn.0045c18a
add esp, 4
mov edi, esi
mov dword [esi + 0x18], eax
call fcn.0044d390
push 0x49a8e0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x14], ebx
pop ebx
pop edi
mov dword [esi + 0x18], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x458763
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4969d4]
jne 0x45876d
repz ret
jmp fcn.004613a9
Function at 0x45b52a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x45b551
call fcn.0045bacb
mov dword [eax], esi
call fcn.0045bab8
push 0x16
pop esi
mov dword [eax], esi
call fcn.00462cb0
mov eax, esi
jmp 0x45b5a6
test dword [ebp + 0xc], 0xfffffff9
jne 0x45b537
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45b57e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0045bade
pop ecx
call fcn.0045bab8
mov eax, dword [eax]
jmp 0x45b5a6
test al, 0x10
jne 0x45b5a4
test al, 1
je 0x45b5a4
test byte [ebp + 0xc], 2
je 0x45b5a4
call fcn.0045bacb
mov dword [eax], 5
call fcn.0045bab8
mov dword [eax], 0xd
jmp 0x45b575
xor eax, eax
pop esi
pop ebp
ret

Function at 0x46fe50
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4969d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00462ff9
and dword [ebp - 0x14], 0
cmp dword [0x499184], 0
mov dword [ebp - 0x18], eax
jne 0x46ff03
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x46ffab
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x46ffab
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x47ea6c
push ebx
mov dword [0x499184], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x499188], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x49918c], eax
call edi
push eax
call esi
mov dword [0x499194], eax
test eax, eax
je 0x46ff03
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x499190], eax
mov eax, dword [0x499190]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x46ff5c
cmp dword [0x499194], ecx
je 0x46ff5c
push eax
call esi
push dword [0x499194]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x46ff5c
test ebx, ebx
je 0x46ff5c
call edi
test eax, eax
je 0x46ff53
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x46ff53
test byte [ebp - 8], 1
jne 0x46ff5c
or dword [ebp + 0x10], 0x200000
jmp 0x46ff8f
mov eax, dword [0x499188]
cmp eax, dword [ebp - 0x18]
je 0x46ff8f
push eax
call esi
test eax, eax
je 0x46ff8f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x46ff8f
mov eax, dword [0x49918c]
cmp eax, dword [ebp - 0x18]
je 0x46ff8f
push eax
call esi
test eax, eax
je 0x46ff8f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x499184]
call esi
test eax, eax
je 0x46ffab
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x46ffad
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00458763
leave
ret
Function at 0x5694f4
Capabilities:
Encode data using xor

Disassembly:
xchg esp, eax
ret 0x1146
pop eax
dec eax
mov bh, 0x4b
mov esp, 0x6a0726c7
mov eax, 0x28750b3b
and dword [eax - 0x7a31db06], eax
sar byte [ebp + 7], cl
outsd dx, dword [esi]
pop ss
add byte [ebx], bl
fnstcw word [esp + eax*8 + 0x4a]
mov word [eax + 0x30c00b7], gs
jne 0x56945d
cdq
fld dword cs:[edx + 0x36]
inc ebx
nop
in al, dx
in al, dx
push ebp
insb byte es:[edi], dx
enter 0xffffffffffffdcc1, 0x6d
mov word [edi + 0x9b0720c], es
or al, 0x72
mov al, 9
and edi, dword [eax]
js 0x56949e
inc eax
call 0x97b7787c
call 0xe54f0483
adc ch, byte [eax]
add byte [esi + ebp*4], dh
pop eax
and byte [edi - 0x638d89f4], dl
jo 0x569456
loopne 0x56941d
xchg ebx, eax
shl esp, 0x76
add al, 0x89
jp 0x56940c
dec esp
fdiv dword [esi + 0x16ff55db]
push dword [esi]
add al, 0xc
add cl, byte [eax]
jge 0x569490
jp 0x5694a2
xor byte [edx + eax*4 - 0x5faa1494], cl
adc edx, ecx
jno 0x5694b0
push ebp
or byte [ebx], bh
xchg dword [eax + 0x4b526889], eax
mov dword [eax + 0x52], ebp
push edx
dec ebx
inc eax
nop
les eax, [0x8403c80c]
aam 0xd4
add esp, dword [eax]
jo 0x5694cc
adc al, 0xd8
test byte [esi], dh
nop
inc ecx
sahf
jno 0x569492
loopne 0x5694a4
push es
or byte [ecx + edx - 0x17], bh
fiadd word [ecx + ecx*8 - 0x54d358db]
test byte [ecx + 1], dh
add al, 0x84
nop
adc ecx, dword [ebx - 0x245dde8f]
inc esi
inc ebx
push eax
cmp al, byte [eax + edx + 0x6b]
xor al, 0x2c
call 0x308b0a1a
add eax, 0x706ef90f
jb 0x56946d
fsubr dword ds:[ebp + 0x78]
push esp
test dword [0x51625208], ebx
or byte [edx + 0x62], dl
push ecx
or byte [edx + 0x62], dl
push ecx
mov dword [ebx + 0x4b], esp
mov byte [0x3b09bf68], al
xor eax, 0x5b8545c4
cld
je 0x56950e
cmp dword [eax + 0x6c], 0x7d
inc ecx
sub eax, dword [0x88b5015b]
add eax, 0x88b5015b
xchg ebp, eax
jg 0x5694bb
add al, byte [edx + 0x6084516c]
add cl, 0
idiv dword [edx + 0x3ef4598c]
insb byte es:[edi], dx
mov bl, 0x20
mov edx, 0x9f50713
mov dword [eax + 0xb], 0x2838158d
clc
or ecx, dword [ebp - 0x7d7c7eb]
or eax, 0x725fa1a
mov dh, 0xd9
adc byte [edx + 1], al
ror byte [ebx + 0x2f], 1
cmc
push ebx
xor ah, byte [eax + 0xd]
jnp 0x569530
Function at 0x40c89c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4afc4c
push 0xa
push 0x40c930
mov eax, dword [0x4afc3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40c8c0
call fcn.004173c8
push ebx
mov eax, dword [0x4afc3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40c8d7
call fcn.004173c8
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40c8e9
call fcn.004173c8
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4afc50], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4afc54], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4afc58], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4afc5c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4afc60], ecx
add edx, dword [eax + 0x14]
mov dword [0x4afc64], edx
pop esi
pop ebx
ret

Function at 0x4101e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x410289
test eax, edx
je 0x41028c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x410209
push edx
mov edx, eax
mov eax, esp
call fcn.00406a08
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x41021f
push eax
lea eax, [esp + 8]
call fcn.00406a08
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41022e
movzx eax, word [eax]
sub eax, ecx
jmp 0x410255
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41026f
add ecx, 4
js 0x410246
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x41026c
push eax
mov eax, ecx
mov edx, 2
call fcn.00406054
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x410253
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x410255
xor eax, eax
ret
test eax, eax
je 0x41029c
test edx, edx
jne 0x4101f0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x414788
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4147c1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406940
jmp 0x4147ca
mov eax, ebx
mov edx, esi
call fcn.00406804
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4147d4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4147f6
movzx eax, word [esp]
jmp 0x4147f8
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x414f88
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4150ad
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00414d98
mov esi, eax
mov eax, dword [0x4ac198]
cmp byte [eax], 0
je 0x415055
mov eax, dword [0x4abf60]
call fcn.0040467c
call fcn.0040433c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x414f60]
call fcn.00407fc8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4150c8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x415091
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4abefc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4afc3c]
call fcn.004080bc
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4150b4
lea eax, [ebp - 4]
mov edx, dword [0x414f60]
call fcn.00407fd4
ret

Function at 0x416264
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x41633a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406858
lea eax, [ebp - 4]
call fcn.004071f0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406890
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x416324
mov eax, ebx
call fcn.004041d4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x41631d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00406890
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x416307
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x41634c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x416307
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416324
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416341
lea eax, [ebp - 4]
call fcn.004067f4
ret