joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406494
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4066c4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406517
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4066c4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406517
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x4066e0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4065a0
xor eax, eax
push ebp
push 0x406599
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004062dc
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40657e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406700
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40657e
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4065a0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x4066ba
cmp byte [ebp - 0xd], 0
jne 0x4065e7
cmp byte [ebp - 0x12], 0
je 0x4066ba
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406600
dec ebx
cmp byte [ebx], 0x2e
je 0x40660f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4065ff
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x4066ba
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40664c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4066ba
cmp byte [ebp - 0xd], 0
je 0x4066ba
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x4066ba
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406e10
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 0x406e76
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.00404a08
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004030b8
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x406e60
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406e7d
lea eax, [ebp - 0x10]
call fcn.00404788
ret

Function at 0x40a2dc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
je 0x40a37a
test ebx, ebx
setl byte [esp]
mov eax, edi
mov edx, 0xb
call fcn.00404de8
mov esi, 0xb
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ebp, eax
mov eax, ebx
mov ecx, 0xa
cdq
idiv ecx
mov ebx, eax
mov eax, edi
call fcn.00404cb0
mov edx, ebp
add dl, 0x30
mov byte [eax + esi - 1], dl
dec esi
test ebx, ebx
jne 0x40a304
cmp byte [esp], 0
je 0x40a34b
mov eax, edi
call fcn.00404cb0
mov byte [eax + esi - 1], 0x2d
dec esi
test esi, esi
jle 0x40a386
mov eax, edi
call fcn.00404cb0
push eax
mov eax, edi
call fcn.00404cb0
add eax, esi
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
pop edx
call fcn.00402978
mov edx, ebx
mov eax, edi
call fcn.00404de8
jmp 0x40a386
mov eax, edi
mov edx, 0x40a394
call fcn.004047dc
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40a398
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, edx
mov ebp, eax
test ebp, ebp
je 0x40a428
test ebp, ebp
setl bl
mov eax, edi
mov edx, 0xb
call fcn.0040546c
mov esi, 0xb
mov eax, ebp
mov ecx, 0xa
cdq
idiv ecx
mov eax, edx
cdq
xor eax, edx
sub eax, edx
mov ecx, eax
mov eax, ebp
mov ebp, 0xa
cdq
idiv ebp
mov ebp, eax
add cx, 0x30
mov eax, dword [edi]
mov word [eax + esi*2 - 2], cx
dec esi
test ebp, ebp
jne 0x40a3be
test bl, bl
je 0x40a3fb
mov eax, dword [edi]
mov word [eax + esi*2 - 2], 0x2d
dec esi
test esi, esi
jle 0x40a434
mov eax, dword [edi]
call fcn.004050f8
mov edx, eax
mov ebx, 0xb
sub ebx, esi
mov ecx, ebx
add ecx, ecx
mov eax, dword [edi]
lea eax, [eax + esi*2]
call fcn.00402978
mov edx, ebx
mov eax, edi
call fcn.0040546c
jmp 0x40a434
mov eax, edi
mov edx, 0x40a440
call fcn.00404f80
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40b3bc
Capabilities:
Get geographical location

Disassembly:
push ecx
cmp word [0x52d384], 0
jne 0x40b3f4
push 2
lea eax, [esp + 4]
push eax
push 0xe
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x40b3eb
mov ax, word [esp]
mov word [0x52d384], ax
jmp 0x40b3f4
mov word [0x52d384], 0x2c
mov ax, word [0x52d384]
pop edx
ret
Function at 0x40b97c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x40b984
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bb91
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x40b9c7
lea edx, [ebp - 0xc]
mov eax, ebx
call dword [0x52d110]
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.004050e8
jmp 0x40bb5e
test ebx, 0xc0000000
je 0x40ba0f
lea edx, [ebp - 0x10]
mov eax, dword [0x52d39c]
call fcn.0040bba8
mov eax, dword [ebp - 0x10]
call fcn.00404c58
push eax
lea edx, [ebp - 0x14]
mov eax, dword [0x52d180]
call fcn.0040bba8
mov eax, dword [ebp - 0x14]
call fcn.00404c58
push eax
call sub.kernel32.dll_GetModuleHandleA_2
push eax
call sub.kernel32.dll_GetProcAddress_1
test eax, eax
je 0x40ba0f
push ebx
call eax
mov ebx, eax
mov edi, 0x1300
cmp ebx, 0x834
jb 0x40ba54
cmp ebx, 0xbb7
ja 0x40ba54
push 2
push 0
lea edx, [ebp - 0x18]
mov eax, dword [0x52d398]
call fcn.0040bba8
mov eax, dword [ebp - 0x18]
call fcn.00404c58
push eax
call sub.kernel32.dll_LoadLibraryExA_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40ba59
or edi, 0x800
jmp 0x40ba59
xor eax, eax
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x40bb57
push dword fs:[edx]
mov dword fs:[edx], esp
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0x400
push ebx
mov eax, dword [ebp - 8]
push eax
push edi
call sub.kernel32.dll_FormatMessageW
test eax, eax
je 0x40baf7
xor edx, edx
push ebp
push 0x40baf0
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.0040506c
mov eax, dword [esi]
call fcn.00405108
mov ebx, eax
test ebx, ebx
jbe 0x40bad9
mov eax, dword [esi]
mov ax, word [eax + ebx*2 - 2]
cmp ax, 0xd
jne 0x40bac0
mov eax, dword [esi]
mov word [eax + ebx*2 - 2], 0x20
jmp 0x40bad4
cmp ax, 0xa
jne 0x40bad4
mov eax, esi
mov ecx, 1
mov edx, ebx
call fcn.004052f0
dec ebx
test ebx, ebx
ja 0x40baa8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb3a
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_LocalFree_1
ret
lea edx, [ebp - 0x20]
mov eax, dword [0x52d3a0]
call fcn.0040bba8
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
call fcn.004050e8
push dword [ebp - 0x1c]
push 0x40bba4
lea eax, [ebp - 0x24]
push eax
mov cx, 0x30
mov edx, 1
mov eax, ebx
call fcn.0040ad2c
push dword [ebp - 0x24]
mov eax, esi
mov edx, 3
call fcn.004051d8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb5e
cmp dword [ebp - 8], 0
je 0x40bb56
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb98
lea eax, [ebp - 0x24]
call fcn.00404f44
lea eax, [ebp - 0x20]
call fcn.00404788
lea eax, [ebp - 0x1c]
call fcn.00404f44
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.004047ac
ret
Function at 0x40bba8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
mov eax, ebx
mov edx, esi
call fcn.004047dc
mov eax, ebx
call fcn.00404ca8
mov eax, dword [ebx]
call fcn.00404a58
test eax, eax
jle 0x40bbd9
mov edx, 1
mov ecx, dword [ebx]
xor byte [ecx + edx - 1], 0x55
inc edx
dec eax
jne 0x40bbce
pop esi
pop ebx
ret

Function at 0x40c694
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c797
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x30]
call fcn.00405edc
mov esi, eax
lea eax, [esi + 1]
push eax
lea eax, [ebx + 0x30]
mov ecx, 1
mov edx, dword [0x40c3a8]
call fcn.00406098
add esp, 4
lea eax, [esi + esi*2]
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x38]
mov dword [edx + eax*8], ecx
mov ecx, dword [ebx + 0x3c]
mov dword [edx + eax*8 + 4], ecx
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebp + 8]
mov dword [edx + eax*8 + 8], ecx
mov ecx, dword [ebp + 0xc]
mov dword [edx + eax*8 + 0xc], ecx
mov eax, edi
xor edx, edx
call fcn.00405220
jne 0x40c71d
test esi, esi
jle 0x40c71d
lea edi, [esi + esi*2]
mov eax, dword [ebx + 0x30]
lea eax, [eax + edi*8 + 0x10]
mov edx, dword [ebx + 0x30]
mov edx, dword [edx + edi*8 - 8]
call fcn.00404f80
jmp 0x40c72e
lea eax, [esi + esi*2]
mov edx, dword [ebx + 0x30]
lea eax, [edx + eax*8 + 0x10]
mov edx, edi
call fcn.00404f80
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
add dword [ebx + 0x38], eax
adc dword [ebx + 0x3c], edx
test esi, esi
jne 0x40c781
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x40c761
mov eax, dword [ebx + 0x30]
mov eax, dword [eax + 0x10]
call fcn.004050f8
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.user32.dll_SetWindowTextW
jmp 0x40c781
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x30]
mov edx, dword [edx + 0x10]
call fcn.00404a20
mov eax, dword [ebp - 4]
call fcn.00404c58
push eax
mov eax, dword [ebx + 0x28]
push eax
call sub.user32.dll_SetWindowTextA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c79e
lea eax, [ebp - 4]
call fcn.00404788
ret
Function at 0x40ed18
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x40ed20
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ef06
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404f44
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x40ed75
lea eax, [ebp - 0x20]
mov edx, ebx
call fcn.00404a20
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call dword [0x52d3fc]
mov edx, dword [ebp - 0x1c]
mov eax, esi
call fcn.004050e8
jmp 0x40eed6
lea eax, [ebp - 8]
push eax
mov eax, ebx
call fcn.004050f8
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40eed6
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.0040546c
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
push edi
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x40eed6
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x40ef14
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x40ee1f
mov eax, dword [ebp - 0x10]
cmp dword [eax + 8], 0
jne 0x40ede6
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0xc], 0
je 0x40ee1f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
xor edx, edx
mov edx, eax
xor eax, eax
push edx
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xc]
xor edx, edx
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
push edx
push eax
lea eax, [ebp - 0x24]
call fcn.0040ea10
mov edx, dword [ebp - 0x24]
mov eax, esi
call fcn.00404f80
jmp 0x40eed6
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ef18
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x40eed6
cmp dword [ebp - 0x14], 0
je 0x40eed6
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x40ef50
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00408308
mov edx, dword [ebp - 0x14]
mov dx, word [edx]
call fcn.004082fc
mov cx, 0x30
mov edx, 8
call fcn.0040abf0
mov eax, dword [ebp - 0x30]
mov ecx, 0x7fffffff
mov edx, 2
call fcn.004052a4
push dword [ebp - 0x2c]
push 0x40ef78
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.004051d8
mov eax, dword [ebp - 0x28]
call fcn.004050f8
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x40eed6
lea eax, [ebp - 0x34]
mov edx, dword [ebp - 0x18]
call fcn.0040506c
mov eax, dword [ebp - 0x34]
mov ebx, dword [0x5331d4]
mov ebx, dword [ebx]
mov edx, esi
call ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ef0d
lea eax, [ebp - 0x34]
mov edx, 5
call fcn.00404f5c
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.004047ac
lea eax, [ebp - 0xc]
call fcn.00404f44
ret
Function at 0x40ef94
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
push 0x40
push 0x1000
push 0x11
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov ebx, eax
mov dword [ebp - 4], ebx
mov eax, ebx
mov byte [eax], 0x58
mov byte [eax + 1], 0x68
mov dword [eax + 2], esi
mov byte [eax + 6], 0x50
mov byte [eax + 7], 0xff
mov byte [eax + 8], 0x25
lea edx, [eax + 0xd]
mov dword [eax + 9], edx
mov dword [eax + 0xd], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x40f9f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, eax
xor ebx, ebx
xor eax, eax
push ebp
push 0x40fa3c
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 2
mov edi, esi
mov eax, edi
call fcn.00410958
test al, al
jne 0x40fa32
cmp word [edi], 0x5a4d
jne 0x40fa32
lea eax, [esi + 0x3c]
mov ebx, dword [eax]
add ebx, esi
cmp dword [ebx], 0x4550
je 0x40fa32
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40fa48
mov eax, ebx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40fbd8
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
push edi
mov esi, eax
xor edi, edi
cmp byte [0x52d418], 0
jne 0x40fcb9
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x40fc2b
push 0x10000
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
push 0x8000
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameW
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileW
mov esi, eax
jmp 0x40fc5c
push 0x105
push 0x40
call sub.kernel32.dll_LocalAlloc_2
mov ebx, eax
push 0x104
push ebx
push esi
call sub.kernel32.dll_GetModuleFileNameA_1
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
push ebx
call sub.kernel32.dll_LocalFree_1
cmp esi, 0xffffffff
je 0x40fcb9
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x40fc87
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingW
mov ebx, eax
jmp 0x40fc99
push 0
push 0
push 0
push 2
push 0
push esi
call sub.kernel32.dll_CreateFileMappingA
mov ebx, eax
test ebx, ebx
je 0x40fcb3
push 0
push 0
push 0
push 4
push ebx
call sub.kernel32.dll_MapViewOfFile
mov edi, eax
push ebx
call sub.kernel32.dll_CloseHandle_1
push esi
call sub.kernel32.dll_CloseHandle_1
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x4101e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4102ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404788
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x410229
push ebx
mov eax, edi
call fcn.004050f8
push eax
push esi
call sub.kernel32.dll_FindResourceW
mov ebx, eax
jmp 0x410288
xor eax, eax
mov al, bl
cmp ebx, eax
jne 0x41024f
push ebx
lea eax, [ebp - 4]
mov edx, edi
call fcn.00404a20
mov eax, dword [ebp - 4]
call fcn.00404c58
push eax
push esi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
jmp 0x410288
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.0040506c
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 8]
call fcn.00404a20
mov eax, dword [ebp - 8]
call fcn.00404c58
push eax
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00404a20
mov eax, dword [ebp - 0x10]
call fcn.00404c58
push eax
push esi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x4102bf
push ebx
push esi
call sub.kernel32.dll_LoadResource
mov edi, eax
test edi, edi
je 0x4102bf
push ebx
push esi
call sub.kernel32.dll_SizeofResource
push eax
push edi
call sub.kernel32.dll_LockResource
mov edx, eax
mov eax, dword [ebp + 8]
pop ecx
call fcn.00404878
mov eax, edi
call fcn.0040831c
push edi
call sub.kernel32.dll_FreeResource
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4102f1
lea eax, [ebp - 0x10]
call fcn.00404788
lea eax, [ebp - 0xc]
call fcn.00404f44
lea eax, [ebp - 8]
mov edx, 2
call fcn.004047ac
ret
Function at 0x417538
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
mov eax, dword [ebp + 8]
cmp dword [eax - 4], 0
je 0x417682
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x417560
cmp dword [ebx + 4], 0
jne 0x417682
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
je 0x417586
mov eax, dword [ebp + 8]
cmp dword [eax + 0x20], 0
je 0x417586
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
push 0
push 0x100000
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
sub eax, dword [ebx + 8]
sbb edx, dword [ebx + 0xc]
push edx
push eax
call fcn.0041748c
mov esi, eax
mov dword [ebx + 4], esi
test esi, esi
je 0x417682
mov eax, dword [ebp + 8]
cmp dword [eax - 8], 0
jne 0x417635
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x4175db
push 4
push 0x1000
push 0x100000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov edx, dword [ebp + 8]
mov dword [edx - 0xc], eax
push dword [ebx + 0xc]
push dword [ebx + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
xor ecx, ecx
xor edx, edx
call fcn.004174cc
test al, al
je 0x41762b
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebx + 4]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x41762b
mov eax, dword [ebx + 4]
cmp eax, dword [ebp - 4]
jne 0x41762b
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
jmp 0x417653
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax + 0x20], edx
jmp 0x417653
push dword [ebx + 0xc]
push dword [ebx + 8]
mov ecx, esi
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
mov edx, 4
call fcn.00417520
mov edx, dword [ebp + 8]
mov dword [edx + 0x20], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov dword [ebx], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 0
je 0x417682
mov ecx, dword [ebx + 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x20]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
mov eax, dword [eax]
call fcn.0041b594
mov edx, dword [ebp + 8]
mov edx, dword [edx + 8]
mov dword [edx], eax
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x417a24
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 8], eax
mov esi, dword [ebx + 0x24]
sub esi, dword [ebx + 0x5c]
sub esi, dword [ebx + 0x54]
test esi, esi
jne 0x417a55
cmp dword [ebx + 0x54], 0
jne 0x417a55
cmp dword [ebx + 0x5c], 0
jne 0x417a55
mov esi, dword [ebp - 8]
jmp 0x417b00
cmp esi, 0xffffffff
jne 0x417a60
dec esi
jmp 0x417b00
mov eax, dword [ebx + 0x54]
mov edx, dword [ebp - 8]
sub edx, 0x106
add edx, dword [ebp - 8]
cmp eax, edx
jb 0x417b00
mov eax, dword [ebx + 0x20]
mov edx, dword [ebp - 8]
lea edx, [eax + edx]
mov ecx, dword [ebp - 8]
xchg edx, eax
call fcn.00402978
mov eax, dword [ebp - 8]
sub dword [ebx + 0x58], eax
mov eax, dword [ebp - 8]
sub dword [ebx + 0x54], eax
mov eax, dword [ebp - 8]
sub dword [ebx + 0x44], eax
mov eax, dword [ebx + 0x34]
mov edx, dword [ebx + 0x2c]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jb 0x417ac2
mov cx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x417ac7
mov word [edx], 0
dec eax
test eax, eax
jne 0x417aa4
mov eax, dword [ebp - 8]
mov edx, dword [ebx + 0x28]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 8]
jb 0x417af3
mov cx, word [ebp - 4]
sub cx, word [ebp - 8]
mov word [edx], cx
jmp 0x417af8
mov word [edx], 0
dec eax
test eax, eax
jne 0x417ad5
add esi, dword [ebp - 8]
mov ecx, dword [ebx]
mov eax, dword [ecx + 8]
mov edx, dword [ecx + 0xc]
push edx
push eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [eax + 0x14]
cmp edx, dword [esp + 4]
jne 0x417b1c
cmp eax, dword [esp]
pop edx
pop eax
je 0x417b8a
push ebp
mov eax, dword [ebx + 0x54]
add eax, dword [ebx + 0x5c]
mov edx, dword [ebx + 0x20]
add edx, eax
mov eax, ecx
mov ecx, esi
call fcn.004179b0
pop ecx
add dword [ebx + 0x5c], eax
cmp dword [ebx + 0x5c], 3
jb 0x417b64
mov eax, dword [ebx + 0x54]
mov edx, dword [ebx + 0x20]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x30], eax
mov ecx, dword [ebx + 0x40]
shl eax, cl
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x20]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x3c]
mov dword [ebx + 0x30], eax
cmp dword [ebx + 0x5c], 0x106
jae 0x417b8a
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
mov ecx, dword [ebp + 8]
cmp edx, dword [ecx + 0x18]
jne 0x417a34
cmp eax, dword [ecx + 0x14]
jne 0x417a34
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret