joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408d10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], 0
push 0x14
push 0
lea eax, [ebp - 0x1c]
push eax
call fcn.0044fbf0
add esp, 0xc
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 8

Function at 0x408d90
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 0
push 0x14
push 0
lea eax, [ebp - 0x18]
push eax
call fcn.0044fbf0
add esp, 0xc
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x408dcb
xor eax, eax
jmp 0x408e3e
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x408de7
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x408e3e
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 4], eax
push 0xffffffffffffffff
push 1
lea eax, [ebp - 8]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push 0
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x40a690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push 0x4ae770
movzx eax, word [ebp + 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0xc]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x40a725
mov dword [ebp - 0x18], 0
jmp 0x40a705
mov edx, dword [ebp - 0x18]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 8]
jae 0x40a725
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 0x18]
mov dl, byte [ecx]
mov byte [ebp - 0xd], dl
mov eax, dword [ebp + 0x10]
add eax, dword [ebp - 0x18]
mov cl, byte [ebp - 0xd]
mov byte [eax], cl
jmp 0x40a6fc
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x40ade0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0xc], eax
movzx eax, word [ebp + 0xc]
push eax
movzx ecx, word [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov esp, ebp
pop ebp
ret

Function at 0x40ae40
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x4c6af0]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042e750
add esp, 8
push 0x400
lea edx, [ebp - 0x408]
push edx
lea eax, [ebp - 0x808]
push eax
call fcn.00451780
add esp, 0xc
push 0x516fb0
push 0x63
push str.ReadIDTiming
push 0x4ae7a8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
cmp ecx, 0x63
jne 0x40aeb4
mov byte [ebp - 0x3c0], 0x55
mov byte [ebp - 0x3bf], 0x55
jmp 0x40aec6
mov dl, byte [ebp - 1]
mov byte [ebp - 0x3c0], dl
mov al, byte [ebp - 1]
mov byte [ebp - 0x3bf], al
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042e6a0
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042e2e0
add esp, 0xc
mov dword [ebp - 0x80c], eax
lea eax, [ebp - 0x808]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042e6a0
add esp, 8
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0044e8ae
mov esp, ebp
pop ebp
ret
Function at 0x40f8c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4c6af0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x20c], 0
cmp dword [0x5164bc], 0
je 0x40f94e
mov dword [ebp - 0x210], 0
jmp 0x40f907
mov eax, dword [ebp - 0x210]
add eax, 1
mov dword [ebp - 0x210], eax
cmp dword [ebp - 0x210], 0x10
jge 0x40f92b
mov ecx, dword [ebp - 0x210]
mov edx, dword [ebp - 0x210]
mov al, byte [edx + str.DiES_01_:0x7200_BtPramCd]
mov byte [ebp + ecx - 0x208], al
jmp 0x40f8f8
mov byte [ebp - 0x1f8], 0
push 0x40000
push 0x46e050
push 0x4d64a8
call fcn.00451780
add esp, 0xc
jmp 0x40fa24
mov ecx, dword [ebp + 8]
push ecx
push 0x517340
push 0x4afc04
lea edx, [ebp - 0x208]
push edx
call fcn.0044fc6a
add esp, 0x10
push 0x4afc0c
lea eax, [ebp - 0x208]
push eax
call fcn.00451db8
add esp, 8
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
jne 0x40f995
xor eax, eax
jmp 0x40fa6f
mov ecx, dword [ebp - 0x20c]
push ecx
call fcn.004526bb
add esp, 4
push eax
call fcn.004525bc
add esp, 4
mov dword [0x4cbd8c], eax
cmp dword [0x4cbd8c], 0x200
jle 0x40f9ca
cmp dword [0x4cbd8c], 0x20800
jle 0x40f9e0
mov edx, dword [ebp - 0x20c]
push edx
call fcn.00451b5c
add esp, 4
xor eax, eax
jmp 0x40fa6f
mov eax, dword [ebp - 0x20c]
push eax
mov ecx, dword [0x4cbd8c]
push ecx
push 1
push 0x4d64a8
call fcn.0045259f
add esp, 0x10
mov dword [ebp - 0x214], eax
mov edx, dword [ebp - 0x20c]
push edx
call fcn.00451b5c
add esp, 4
mov eax, dword [ebp - 0x214]
cmp eax, dword [0x4cbd8c]
je 0x40fa24
xor eax, eax
jmp 0x40fa6f
mov byte [0x4d64a0], 0
mov cl, byte [0x4d64b8]
mov byte [0x4d64a1], cl
mov dl, byte [0x4d64c8]
mov byte [0x4d64a3], dl
mov al, byte [0x4d64c9]
mov byte [0x4d64a4], al
movsx ecx, byte [0x4d64a1]
movsx edx, byte [0x4d64a3]
sub ecx, edx
mov byte [0x4d64a2], cl
mov byte [0x4d64a5], 0
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044e8ae
mov esp, ebp
pop ebp
ret 4
Function at 0x426bf0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x4c6af0]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 0xc4], 0
xor eax, eax
mov dword [ebp - 0xc3], eax
mov dword [ebp - 0xbf], eax
mov dword [ebp - 0xbb], eax
mov dword [ebp - 0xb7], eax
mov dword [ebp - 0xb3], eax
mov dword [ebp - 0xaf], eax
mov dword [ebp - 0xab], eax
mov word [ebp - 0xa7], ax
mov byte [ebp - 0xa5], al
mov byte [ebp - 0x14], 0
xor ecx, ecx
mov dword [ebp - 0x13], ecx
mov dword [ebp - 0xf], ecx
mov byte [ebp - 0xb], cl
mov byte [ebp - 0xa0], 0
push 0x7f
push 0
lea edx, [ebp - 0x9f]
push edx
call fcn.0044fbf0
add esp, 0xc
mov byte [ebp - 0xa1], 0
mov dword [ebp - 0x1c], 0x400
mov al, byte [ebp + 0xc]
mov byte [ebp - 0x15], al
mov byte [ebp - 0x1d], 0x43
mov byte [ebp - 2], 0
mov byte [ebp - 1], 0
mov byte [ebp - 0xa2], 0
mov ecx, dword [ebp - 0x1c]
push ecx
movzx edx, byte [ebp - 0xa2]
push edx
movzx eax, byte [ebp - 1]
push eax
movzx ecx, byte [ebp - 2]
push ecx
movzx edx, byte [ebp - 0x1d]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0042e360
add esp, 0x1c
test eax, eax
je 0x426dfe
push 0x20
push 0
lea edx, [ebp - 0xc4]
push edx
call fcn.0044fbf0
add esp, 0xc
mov dword [ebp - 0xc8], 0
jmp 0x426cf4
mov eax, dword [ebp - 0xc8]
add eax, 0x20
mov dword [ebp - 0xc8], eax
cmp dword [ebp - 0xc8], 0x100
jge 0x426dfe
mov dword [ebp - 0xcc], 0
jmp 0x426d1f
mov ecx, dword [ebp - 0xcc]
add ecx, 1
mov dword [ebp - 0xcc], ecx
cmp dword [ebp - 0xcc], 0x10
jge 0x426d9d
mov edx, dword [ebp - 0xcc]
add edx, dword [ebp - 0xc8]
mov eax, dword [ebp + 0x14]
movzx ecx, byte [eax + edx]
mov edx, dword [ebp - 0xcc]
add edx, dword [ebp - 0xc8]
mov eax, dword [ebp + 0x14]
movzx edx, byte [eax + edx + 0x10]
xor ecx, edx
cmp ecx, 0xff
jne 0x426d98
mov eax, dword [ebp - 0xcc]
movsx ecx, byte [ebp + eax - 0xb4]
test ecx, ecx
jne 0x426d98
mov edx, dword [ebp - 0xcc]
mov byte [ebp + edx - 0xb4], 1
mov eax, dword [ebp - 0xcc]
add eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xcc]
mov edx, dword [ebp + 0x14]
mov al, byte [edx + eax]
mov byte [ebp + ecx - 0xc4], al
jmp 0x426d10
mov byte [ebp - 0xa1], 0
mov dword [ebp - 0xcc], 0
jmp 0x426dbf
mov ecx, dword [ebp - 0xcc]
add ecx, 1
mov dword [ebp - 0xcc], ecx
cmp dword [ebp - 0xcc], 0x10
jge 0x426deb
mov edx, dword [ebp - 0xcc]
movsx eax, byte [ebp + edx - 0xb4]
test eax, eax
je 0x426de9
mov cl, byte [ebp - 0xa1]
add cl, 1
mov byte [ebp - 0xa1], cl
jmp 0x426db0
movsx edx, byte [ebp - 0xa1]
cmp edx, 0x10
jne 0x426df9
jmp 0x426dfe
jmp 0x426ce5
movsx eax, byte [ebp - 0xa1]
cmp eax, 0x10
jne 0x426e21
push 0x20
lea ecx, [ebp - 0xc4]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00451780
add esp, 0xc
jmp 0x426e28
mov byte [ebp - 0xa1], 0
mov al, byte [ebp - 0xa1]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0044e8ae
mov esp, ebp
pop ebp
ret
Function at 0x43782e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x437875
call fcn.0043dfd8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x437875
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x437891
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004373a8
mov esi, eax
test edi, edi
je 0x43788f
test ebx, ebx
je 0x43788f
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4380d1
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x4687ed
call fcn.004535d0
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4380f6
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x43813c
lea ecx, [ebp - 0x10]
call fcn.004023c0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00437898
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004027f0
mov eax, esi
call fcn.004536a8
ret 8

Function at 0x43a858
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 + 0x58], ebx
test ebx, 0xffff0000
jne 0x43a87c
cmp dword [edi + 0x54], 0
jne 0x43a87c
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0043dfd8
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
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.0043a819
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 0x43cd09
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 0x43cd51
call fcn.0043dfd8
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x43cd51
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x43cd94
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 0x43cd7d
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 0x43cd7d
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x43cd91
mov ecx, dword [esi + 0x4c]
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 0x44e8ae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4c6af0]
jne 0x44e8b8
repz ret
jmp fcn.0045661c
Function at 0x463e4a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00455f5e
and dword [ebp - 4], 0
cmp dword [0x519f74], 0
mov ebx, eax
jne 0x463efb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x463fac
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b7e28
push edi
call esi
test eax, eax
je 0x463fac
push eax
call fcn.00455eec
mov dword [esp], 0x4b7e18
push edi
mov dword [0x519f74], eax
call esi
push eax
call fcn.00455eec
mov dword [esp], 0x4b7e04
push edi
mov dword [0x519f78], eax
call esi
push eax
call fcn.00455eec
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x519f7c], eax
call esi
push eax
call fcn.00455eec
pop ecx
mov dword [0x519f84], eax
test eax, eax
je 0x463efb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00455eec
pop ecx
mov dword [0x519f80], eax
mov eax, dword [0x519f80]
cmp eax, ebx
je 0x463f53
cmp dword [0x519f84], ebx
je 0x463f53
push eax
call fcn.00455f67
push dword [0x519f84]
mov esi, eax
call fcn.00455f67
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x463f53
test edi, edi
je 0x463f53
call esi
test eax, eax
je 0x463f4a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x463f4a
test byte [ebp - 0xc], 1
jne 0x463f53
or dword [ebp + 0x10], 0x200000
jmp 0x463f8c
mov eax, dword [0x519f78]
cmp eax, ebx
je 0x463f8c
push eax
call fcn.00455f67
pop ecx
test eax, eax
je 0x463f8c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x463f8c
mov eax, dword [0x519f7c]
cmp eax, ebx
je 0x463f8c
push eax
call fcn.00455f67
pop ecx
test eax, eax
je 0x463f8c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x519f74]
call fcn.00455f67
pop ecx
test eax, eax
je 0x463fac
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x463fae
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40689a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068be
xor eax, eax
test eax, eax
je 0x4068d1
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068d1
xor ecx, ecx
jmp 0x4068d4
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4069f7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43190c], 0
push esi
jne 0x406a2e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a08
mov dword [ecx*4 + 0x431908], eax
inc ecx
cmp ecx, 0x100
jl 0x406a03
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a5f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x431908]
xor eax, esi
inc ecx
dec edx
jne 0x406a41
pop edi
not eax
pop esi
ret 0xc

Function at 0x4021d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4021f5
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402200
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4021f5
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402248
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40223e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40224a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402230
xor eax, eax
pop ebx
pop esi
ret
Function at 0x403360
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403393
call fcn.00403340
test eax, eax
je 0x403393
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 8]
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403400
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403434
call fcn.00403340
cmp eax, 7
jb 0x403434
mov edx, 7
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403440
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403473
call fcn.00403340
test eax, eax
je 0x403473
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 8]
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403570
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x899474]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x4035b9
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4035b9
push 0xc00
call eax
test eax, eax
jne 0x40364e
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x40364e
cmp ecx, 0x104
ja 0x40364e
cmp word [ebp + ecx*2 - 0x2d6], 0x5c
je 0x4035f2
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x2d4], ax
inc ecx
mov al, byte [str.userenv]
push esi
mov esi, str.userenv
test al, al
je 0x40364d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + ecx*2]
mov ecx, edi
inc esi
movzx eax, al
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
mov al, byte [esi]
inc esi
test al, al
jne 0x403615
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
mov al, byte [esi]
test al, al
jne 0x403612
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044b929
mov esp, ebp
pop ebp
ret
Function at 0x408b30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x98
push 0
lea eax, [edi + 0x110]
push eax
call fcn.0044d080
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [eax + ecx]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x1010100
mov dword [ecx + 8], 0
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x408bc7
lea eax, [edi + 0x9fc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
nop word [eax + eax]
mov esi, eax
xor edi, edi
movzx eax, word [edi + 0x45c570]
lea ecx, [ebx + 2]
xor edx, edx
div ecx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x408c10
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x408bf4
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x408bf0
mov edi, dword [ebp + 8]
mov edx, 0x50
pop ebx
lea esi, [edi + 0x3bc]
nop dword [eax + eax]
mov eax, esi
mov ecx, 0x10
nop word [eax + eax]
mov word [eax], dx
lea eax, [eax + 4]
mov word [eax - 2], 0x403
sub ecx, 1
jne 0x408c60
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x408c50
mov dword [edi + 0x3b8], 0x40070000
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4