joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45121b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00451ba4
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x451254
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00450e58
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x4512b2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x78], ebx
test ebx, 0xffff0000
jne 0x4512d6
cmp dword [edi + 0x74], 0
jne 0x4512d6
movzx eax, bx
mov dword [edi + 0x74], eax
call fcn.00451ba4
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00451273
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4525ef
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x45261a
call fcn.00451ba4
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 8], eax
test eax, eax
jne 0x45263d
push eax
push dword [esi + 4]
call fcn.00452552
push esi
push eax
mov ecx, 0x64de48
call fcn.004521d5
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x452f03
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x5840e0
call fcn.0054a85b
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov ebx, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00452ec3
and dword [ebp - 4], 0
mov dword [esi], vtable.CHttpConnection.0
call fcn.00444998
push eax
lea ecx, [esi + 0x18]
call fcn.00443ea8
push dword [ebp + 0xc]
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00444250
push dword [esi + 8]
mov ebx, dword [ebx + 8]
push 0
push 3
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x452f7a
push eax
push dword [esi + 8]
call fcn.00452552
push dword [esi + 0xc]
mov ecx, 0x64de48
push eax
call fcn.004521d5
mov eax, esi
call fcn.0054a933
ret 0x18
Function at 0x452f92
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x5840e0
call fcn.0054a85b
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov ebx, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00452ec3
and dword [ebp - 4], 0
mov dword [esi], vtable.CHttpConnection.0
call fcn.00444998
push eax
lea ecx, [esi + 0x18]
call fcn.00443ea8
push dword [ebp + 0xc]
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.00444250
push dword [esi + 8]
mov ebx, dword [ebx + 8]
push dword [ebp + 0x10]
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x45300a
push eax
push dword [esi + 8]
call fcn.00452552
push dword [esi + 0xc]
mov ecx, 0x64de48
push eax
call fcn.004521d5
mov eax, esi
call fcn.0054a933
ret 0x1c

Function at 0x453511
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0044d16c
call fcn.00446665
cmp eax, esi
pop esi
jne 0x45352d
mov ecx, 0x64e1d8
jmp fcn.00460065
ret

Function at 0x4554d6
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x6459b8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x45551b
push 0x59ef80
push 4
push eax
call fcn.0054aa4d
push eax
call fcn.004036d0
add esp, 0x10
jmp 0x455531
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4555b1
push edi
call fcn.0054aaf2
mov edi, dword [eax]
call fcn.0054aaf2
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0054a83a
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0054aaf2
cmp dword [eax], 0
je 0x455585
call fcn.0054aaf2
push dword [eax]
call fcn.00443e4c
pop ecx
jmp 0x45558c
call fcn.0054aaf2
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
pop edi
je 0x4555b1
cmp dword [ebp - 0x234], esi
jae 0x4555b1
push 0
push 0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4555b3
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00546bde
leave
ret
Function at 0x455a52
Capabilities:
Identify system language via api

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x6459b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x144], eax
mov eax, dword [ebp + 0xc]
push edi
push str.KERNEL32.DLL
mov dword [ebp - 0x13c], eax
xor esi, esi
call fcn.0044a0a8
pop ecx
cmp eax, esi
je 0x455b3c
push str.GetThreadPreferredUILanguages
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x455b3c
xor eax, eax
push 0xc8
mov word [ebp - 0xd0], ax
lea eax, [ebp - 0xce]
push esi
push eax
mov dword [ebp - 0x140], esi
call fcn.00546d60
add esp, 0xc
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x140]
push eax
push 0x34
mov dword [ebp - 0x138], 0x65
call edi
test eax, eax
je 0x455b3c
lea edi, [ebp - 0xd0]
cmp word [ebp - 0xd0], si
je 0x455b3c
cmp esi, 0x14
jge 0x455b3c
push 0x10
push 0
push edi
call fcn.0054d4ab
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x455b2b
call fcn.0054aaf2
cmp dword [eax], 0x22
je 0x455b2b
mov dword [ebp + esi*4 - 0x134], ebx
inc esi
push edi
call fcn.0054aa32
lea edi, [edi + eax*2 + 2]
cmp word [edi], 0
pop ecx
jne 0x455b01
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
mov ebx, 0xfc00
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x134], eax
call edi
mov dword [ebp + esi*4 - 0x130], eax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
and eax, ebx
or eax, ecx
push eax
mov dword [ebp - 0x138], ecx
call edi
push dword [ebp - 0x138]
mov dword [ebp + esi*4 - 0x12c], eax
call edi
mov dword [ebp + esi*4 - 0x128], eax
add esi, 4
cmp dword [0x64dec0], 0
jne 0x455bc7
mov dword [ebp + esi*4 - 0x134], 0x800
inc esi
xor edi, edi
test esi, esi
jle 0x455bf0
push dword [ebp + edi*4 - 0x134]
mov ecx, dword [ebp - 0x144]
push dword [ebp - 0x13c]
call fcn.004554d6
pop ecx
pop ecx
test eax, eax
jne 0x455bf2
inc edi
cmp edi, esi
jl 0x455bcd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00546bde
leave
ret 8
Function at 0x457e22
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x457e6a
call fcn.00451ba4
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x457e6a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x457ead
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x457e96
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x457e96
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x457eaa
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x45f192
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6459b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x45f1c7
xor eax, eax
jmp 0x45f21a
lea eax, [ebp - 0x210]
push eax
call fcn.0054aa32
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x45f1f8
push 0x616b64
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0054d4c5
add esp, 0xc
test eax, eax
jne 0x45f1c3
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0054d4c5
add esp, 0xc
test eax, eax
jne 0x45f1c3
lea eax, [ebp - 0x210]
push eax
call fcn.0044a0a8
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00546bde
leave
ret

Function at 0x4d7ae5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4d7aff
call fcn.00451ba4
mov esi, dword [eax + 0xc]
push dword [0x650180]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4d7b1d
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4d7b15
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4d7b4a
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4d7b17
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004d7a13
mov esi, eax
jmp 0x4d7b3c
Function at 0x526f3c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x526f54
mov edi, dword [esi + 0xc]
jmp 0x526f94
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x526f6d
call fcn.004471f6
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x526f82
call fcn.004471f6
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x526f94
call fcn.004471f6
call fcn.00451ba4
cmp dword [eax + 0x3c], 0
je 0x526fa9
push edi
mov ecx, ebx
call fcn.00525df8
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00526e56
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x526fc7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x526fd3
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x546bde
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6459b8]
jne 0x546be8
repz ret
jmp fcn.0055308c

Function at 0x5470d7
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 0x5470fe
call fcn.0054ab05
mov dword [eax], esi
call fcn.0054aaf2
push 0x16
pop esi
mov dword [eax], esi
call fcn.0054fe52
mov eax, esi
jmp 0x547153
test dword [ebp + 0xc], 0xfffffff9
jne 0x5470e4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x54712b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0054ab18
pop ecx
call fcn.0054aaf2
mov eax, dword [eax]
jmp 0x547153
test al, 0x10
jne 0x547151
test al, 1
je 0x547151
test byte [ebp + 0xc], 2
je 0x547151
call fcn.0054ab05
mov dword [eax], 5
call fcn.0054aaf2
mov dword [eax], 0xd
jmp 0x547122
xor eax, eax
pop esi
pop ebp
ret
Function at 0x55d708
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6459b8]
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.0054f4db
and dword [ebp - 0x14], 0
cmp dword [0x6526b8], 0
mov dword [ebp - 0x18], eax
jne 0x55d7bb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x55d863
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5c7d28
push ebx
call edi
test eax, eax
je 0x55d863
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x5c7d18
push ebx
mov dword [0x6526b8], eax
call edi
push eax
call esi
push 0x5c7d04
push ebx
mov dword [0x6526bc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x6526c0], eax
call edi
push eax
call esi
mov dword [0x6526c8], eax
test eax, eax
je 0x55d7bb
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x6526c4], eax
mov eax, dword [0x6526c4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x55d814
cmp dword [0x6526c8], ecx
je 0x55d814
push eax
call esi
push dword [0x6526c8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x55d814
test ebx, ebx
je 0x55d814
call edi
test eax, eax
je 0x55d80b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x55d80b
test byte [ebp - 8], 1
jne 0x55d814
or dword [ebp + 0x10], 0x200000
jmp 0x55d847
mov eax, dword [0x6526bc]
cmp eax, dword [ebp - 0x18]
je 0x55d847
push eax
call esi
test eax, eax
je 0x55d847
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x55d847
mov eax, dword [0x6526c0]
cmp eax, dword [ebp - 0x18]
je 0x55d847
push eax
call esi
test eax, eax
je 0x55d847
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x6526b8]
call esi
test eax, eax
je 0x55d863
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x55d865
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00546bde
leave
ret

Function at 0x565054
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
and dword [ebp + 8], 0
cmp dword [ebp + 0x10], 0
mov ecx, dword [eax]
mov edx, dword [eax + 4]
jle 0x5650b5
push ebx
push esi
push edi
mov esi, 0xff
inc ecx
and ecx, esi
lea edi, [eax + ecx*4 + 8]
mov dword [ebp - 4], ecx
mov ecx, dword [edi]
add edx, ecx
and edx, esi
mov dword [ebp - 8], edx
lea edx, [eax + edx*4 + 8]
mov ebx, dword [edx]
mov dword [edi], ebx
mov ebx, dword [edx]
mov edi, dword [ebp + 8]
add ebx, ecx
mov dword [edx], ecx
mov edx, dword [ebp + 0xc]
and ebx, esi
mov cl, byte [eax + ebx*4 + 8]
xor byte [edx + edi], cl
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
inc edi
mov dword [ebp + 8], edi
cmp edi, dword [ebp + 0x10]
jl 0x565073
pop edi
pop esi
pop ebx
mov dword [eax], ecx
mov dword [eax + 4], edx
leave
ret
Function at 0x565ae1
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x567e07
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x6459b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edi + 0x3c8]
push 0x10
push eax
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x24]
push eax
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x44], edi
call fcn.00570166
add esp, 0xc
test esi, esi
jle 0x567f04
mov ecx, dword [ebp + 8]
lea eax, [esi - 1]
add ebx, 2
shr eax, 4
add ecx, 2
inc eax
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], eax
jmp 0x567e5f
mov edi, dword [ebp - 0x44]
mov ebx, ecx
xor ecx, ecx
movzx eax, byte [ebx - 2]
movzx edx, byte [ebx - 1]
shl eax, 8
or eax, edx
movzx edx, byte [ebx]
shl eax, 8
or eax, edx
movzx edx, byte [ebx + 1]
shl eax, 8
or eax, edx
mov dword [ebp + ecx - 0x34], eax
mov dword [ebp + ecx - 0x14], eax
add ecx, 4
add ebx, 4
cmp ecx, 0x10
jl 0x567e63
lea eax, [ebp - 0x14]
push eax
mov eax, edi
call fcn.00567df6
mov eax, dword [ebp - 0x38]
pop ecx
xor edi, edi
lea esi, [ebp + edi - 0x24]
mov dl, byte [esi]
lea ecx, [ebp + edi - 0x14]
xor dl, byte [ecx]
mov ecx, dword [ecx]
mov byte [eax + 1], dl
mov edx, dword [esi]
mov dword [ebp - 0x38], ecx
shr ecx, 8
shr edx, 8
xor dl, cl
mov ecx, dword [esi]
mov byte [eax], dl
mov edx, dword [ebp - 0x38]
shr ecx, 0x10
shr edx, 0x10
xor cl, dl
mov edx, dword [ebp - 0x38]
mov byte [eax - 1], cl
mov ecx, dword [esi]
shr ecx, 0x18
shr edx, 0x18
xor cl, dl
mov byte [eax - 2], cl
mov ecx, dword [ebp + edi - 0x34]
add edi, 4
add eax, 4
mov dword [esi], ecx
cmp edi, 0x10
jl 0x567ea5
dec dword [ebp - 0x3c]
mov ecx, ebx
mov dword [ebp - 0x38], eax
jne 0x567e5c
push 0x10
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x40]
call fcn.00570166
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00546bde
leave
ret
Function at 0x567f35
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x6459b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea eax, [ebx + 0x3c8]
push 0x10
push eax
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x14]
push eax
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x1c], ebx
call fcn.00570166
add esp, 0xc
test edi, edi
jle 0x567ff9
mov ecx, dword [ebp + 8]
add esi, 2
add ecx, 2
dec edi
shr edi, 4
mov dword [ebp - 0x18], esi
inc edi
jmp 0x567f88
mov ebx, dword [ebp - 0x1c]
xor eax, eax
mov esi, ecx
movzx ecx, byte [esi - 2]
movzx edx, byte [esi - 1]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi]
shl ecx, 8
or ecx, edx
movzx edx, byte [esi + 1]
shl ecx, 8
or ecx, edx
xor dword [ebp + eax*4 - 0x14], ecx
inc eax
add esi, 4
cmp eax, 4
jl 0x567f8c
lea eax, [ebp - 0x14]
push eax
mov eax, ebx
call fcn.00567f24
mov eax, dword [ebp - 0x18]
pop ecx
xor edx, edx
lea ecx, [ebp + edx*4 - 0x14]
mov bl, byte [ecx]
mov ecx, dword [ecx]
mov byte [eax + 1], bl
mov ebx, ecx
shr ebx, 8
mov byte [eax], bl
mov ebx, ecx
shr ebx, 0x10
shr ecx, 0x18
mov byte [eax - 1], bl
mov byte [eax - 2], cl
inc edx
add eax, 4
cmp edx, 4
jl 0x567fc8
dec edi
mov ecx, esi
mov dword [ebp - 0x18], eax
jne 0x567f85
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call fcn.00570166
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00546bde
leave
ret

Function at 0x56b32b
Capabilities:
Hash data using sha1

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret
Function at 0x571516
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x571603
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0x2000000
ja 0x571556
push 0
lea ecx, [ebp - 4]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
and eax, dword [ebp - 4]
jmp 0x571603
mov eax, dword [esi]
push ebx
call dword [eax + 0x18]
mov ebx, eax
and eax, edx
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
jne 0x57156f
xor eax, eax
jmp 0x571602
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x14]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], edx
jmp 0x5715e0
xor ecx, ecx
mov edx, eax
add edx, ebx
adc ecx, dword [ebp - 0x14]
xor edi, edi
cmp ecx, edi
jg 0x571601
jl 0x571595
cmp edx, dword [ebp - 0x10]
jae 0x571601
mov edi, dword [ebp + 0xc]
lea ecx, [eax + 0x2000000]
cmp ecx, edi
jae 0x5715a9
mov edi, 0x2000000
jmp 0x5715ab
sub edi, eax
add eax, dword [ebp + 8]
and dword [ebp - 8], 0
push 0
lea ecx, [ebp - 8]
push ecx
push edi
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5715ea
mov eax, dword [ebp - 8]
mov ecx, esi
cmp eax, edi
jb 0x5715ee
add dword [ebp - 4], edi
mov eax, dword [ebp - 4]
mov edi, dword [esi]
add eax, ebx
cdq
push edx
push eax
call dword [edi + 0x1c]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jb 0x57157f
jmp 0x571601
xor eax, eax
jmp 0x571601
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov edi, dword [esi]
add eax, ebx
cdq
push edx
push eax
call dword [edi + 0x1c]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x573050
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x6459b8]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
call fcn.00546d60
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x5730b3
cmp dword [ebp - 0x108], 2
jne 0x5730b3
cmp dword [ebp - 0x114], 6
jne 0x5730b3
mov eax, 1
cmp dword [ebp - 0x110], eax
je 0x5730b5
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00546bde
mov esp, ebp
pop ebp
ret

Function at 0x575e80
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x6459b8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x652938], 0
push edi
mov edi, dword [ebp + 8]
je 0x575ec8
push 0x6528ec
lea eax, [edi + 0x1c]
push 0x20
push eax
call fcn.0054aa4d
mov cl, byte [0x6528e7]
add esp, 0xc
mov byte [edi + 0x17], cl
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00546bde
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx edx, ax
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x68]
push ecx
mov ecx, 0x652954
mov dword [ebp - 0x64], edx
call fcn.00575c60
mov eax, dword [eax]
cmp eax, dword [0x652958]
je 0x575fa0
movzx edx, word [0x64ad20]
cmp dword [eax + 0x10], edx
jne 0x575fa0
push 0
lea eax, [ebp - 0x60]
push eax
push 0x5c
push 0x1f
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov ecx, 0xbf89
cmp word [0x64ad20], cx
jne 0x575f79
push 0x61423c
lea edx, [ebp - 0x44]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCmpW]
test eax, eax
jne 0x575f79
call fcn.00573050
test eax, eax
je 0x575f45
push str.Meiryo_UI
jmp 0x575fa5
push esi
push 0x11
call dword [sym.imp.GDI32.dll_GetStockObject]
mov esi, eax
test esi, esi
je 0x575f78
push 0x5c
lea ecx, [ebp - 0x60]
push 0
push ecx
call fcn.00546d60
add esp, 0xc
lea edx, [ebp - 0x60]
push edx
push 0x5c
push esi
call dword [sym.imp.GDI32.dll_GetObjectW]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop esi
lea eax, [ebp - 0x44]
push eax
lea ecx, [edi + 0x1c]
push 0x20
push ecx
call fcn.0054aa4d
mov dl, byte [ebp - 0x49]
add esp, 0xc
mov byte [edi + 0x17], dl
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00546bde
mov esp, ebp
pop ebp
ret
push 0x5a0710
lea eax, [edi + 0x1c]
push 0x20
push eax
call fcn.0054aa4d
mov ecx, dword [ebp - 4]
add esp, 0xc
mov byte [edi + 0x17], 1
xor ecx, ebp
pop edi
call fcn.00546bde
mov esp, ebp
pop ebp
ret