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

Disassembly:
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceA]
push ebp
push esi
push edi
xor edi, edi
push 0x5827d4
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x48b1bf
call fcn.004e615f
mov edi, dword [eax + 0xc]
test edi, edi
jne 0x48b1a4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push 0x5827d4
push str.E2EE_IDR_DLL
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x48b1bf
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
jne 0x48b1d5
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x48b1e9
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
jne 0x48b202
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret
mov edi, dword [esp + 0x18]
push edi
push ebx
push ebp
call fcn.0048b920
add esp, 0xc
test al, al
jne 0x48b2a1
mov eax, dword [edi + 8]
cmp eax, ebx
jb 0x48b2a9
mov esi, dword [0x52086c]
jae 0x48b231
call fcn.004d91b6
mov ecx, edi
call fcn.0048b4b0
mov eax, dword [edi + 8]
mov ecx, eax
sub ecx, ebx
cmp ecx, esi
jae 0x48b245
mov esi, ecx
test esi, esi
jbe 0x48b283
mov ecx, dword [edi + 4]
sub eax, esi
sub eax, ebx
push eax
lea eax, [ecx + esi]
add eax, ebx
add ecx, ebx
push eax
push ecx
call fcn.004c6450
mov ebp, dword [edi + 8]
add esp, 0xc
sub ebp, esi
mov ecx, edi
push 0
push ebp
call fcn.0048b390
test al, al
je 0x48b27f
mov ecx, dword [edi + 4]
mov dword [edi + 8], ebp
mov byte [ecx + ebp], 0
mov ebp, dword [esp + 0x10]
mov edi, dword [edi + 4]
test edi, edi
jne 0x48b28f
mov edi, 0x520868
mov ecx, ebx
mov esi, ebp
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
mov edx, ebx
push 0
sub edx, eax
mov ecx, edi
push edx
call fcn.0048b2c0
jmp 0x48b283
Function at 0x497cb0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x65f8f4]
xor edx, edx
cmp eax, edx
jne 0x497cd6
xor eax, eax
mov byte [eax + 0x65f7f4], al
inc eax
cmp eax, 0x100
jl 0x497cbe
mov dword [0x65f8f4], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x65f7f4
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x497d67
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x497d3a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x497d08
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x497d70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x497dc3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x497daa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49e750
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4eb2ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0049f070
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x524d34
call fcn.004dc952
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x49e7e3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004dc952
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x49e7dc
push 0
mov ecx, eax
call fcn.004958f0
mov dword [esi + 0xc], eax
jmp 0x49e7e5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x49e7e5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x4b05b0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
jne 0x4b05c0
mov esi, 1
push esi
call fcn.004c6c47
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4b0612
call fcn.004c776d
mov edi, eax
call fcn.004b3120
mov ecx, dword [edi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov edi, eax
and edi, 8
je 0x4b05f6
mov edx, dword [0x58c910]
mov dword [0x58c90c], edx
test al, 0x18
je 0x4b0607
push esi
push 0x24
push 5
call fcn.004b3970
add esp, 0xc
test edi, edi
je 0x4b062d
push 1
call fcn.004c8580
test byte [esp + 0x14], 0x20
je 0x4b062d
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x4b1730
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov edx, dword [ebp + 0x10]
test edx, edx
push ebx
push esi
push edi
je 0x4b1824
cmp byte [edx], 0
je 0x4b1817
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
add eax, 8
or ecx, 0xffffffff
mov dword [esp + 0xc], eax
xor eax, eax
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea ecx, [esp + 0x20]
push ecx
mov esi, ebx
call fcn.004b16b0
mov edi, dword [ebp + 0xc]
push 8
lea edx, [esp + 0x20]
push edi
push edx
call fcn.004b16b0
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
xor eax, edx
push eax
xor ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x40]
push edx
call fcn.004b1620
mov eax, dword [esp + 0x30]
add esp, 0x24
cmp edi, eax
jae 0x4b17e1
sub eax, edi
mov edi, eax
lea eax, [esp + 0x20]
push eax
call fcn.004b1660
fmul qword [0x5255d0]
push ecx
fstp qword [esp]
call fcn.004c55b8
fadd qword [0x5255c8]
add esp, 8
call fcn.004c5688
mov byte [ebx], al
inc ebx
dec edi
jne 0x4b17b4
lea ecx, [esp + 0x20]
push ecx
call fcn.004b1660
fmul qword [0x5255d0]
push ecx
fstp qword [esp]
call fcn.004c55b8
add esp, 8
call fcn.004c5688
cmp esi, ebx
je 0x4b180d
xor byte [esi], al
inc esi
cmp esi, ebx
jne 0x4b1806
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b1bf0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
lea eax, [ebx + 0x134]
push edi
lea esi, [ebx + 0x34]
mov dword [esp + 0x14], eax
xor edi, edi
mov ecx, dword [ebx + 0x1c]
mov ebp, edi
and ebp, 0xff
mov al, byte [ecx + ebp + 1]
test al, 3
je 0x4b1c20
mov byte [edi + esi], 2
jmp 0x4b1c57
test al, 4
je 0x4b1c2a
mov byte [edi + esi], 0xd
jmp 0x4b1c57
mov edx, dword [ebx + 0x240]
push edi
push ebx
call dword [edx + 4]
add esp, 8
cmp eax, 1
jle 0x4b1c43
mov byte [edi + esi], 2
jmp 0x4b1c57
mov eax, dword [ebx + 0x1c]
test byte [eax + ebp + 1], 0x17
jne 0x4b1c53
mov byte [edi + esi], 0x19
jmp 0x4b1c57
mov byte [edi + esi], 1
inc edi
cmp edi, 0x100
jb 0x4b1c07
mov ecx, dword [esp + 0x14]
mov al, 7
mov byte [esi + 0x21], al
mov byte [esi + 0x3d], al
mov byte [esi + 0x3e], al
mov al, 0x10
mov byte [esi + 0x7c], al
mov byte [esi + 0x26], al
mov byte [esi + 0x24], 2
mov byte [esi + 0x5f], 2
mov byte [esi + 0x27], 9
mov byte [esi + 0x2e], 0xf
mov byte [esi + 0x3c], 8
mov byte [esi + 0x23], 0xa
mov byte [esi + 0x3b], 0x15
mov byte [esi + 0x3a], 0x16
mov byte [esi], 0x11
mov byte [esi + 0x5c], 0x12
mov byte [esi + 0x2f], 0x13
mov byte [esi + 0x2a], 0x14
mov byte [esi + 0x40], 0x17
mov byte [esi + 0x60], 0x1a
mov byte [esi + 0x22], 0x20
mov eax, esi
sub ecx, esi
mov edi, 0x100
mov dl, byte [eax]
cmp dl, 2
je 0x4b1ccb
cmp dl, 0xd
je 0x4b1ccb
xor edx, edx
jmp 0x4b1cd0
mov edx, 1
mov byte [ecx + eax], dl
inc eax
dec edi
jne 0x4b1cbb
mov al, 0x1d
mov byte [esi + 0x58], al
mov byte [esi + 0x78], al
mov al, 0x1f
pop edi
mov byte [esi + 0x62], 0x1e
mov byte [esi + 0x4e], al
mov byte [esi + 0x6e], al
pop esi
pop ebp
pop ebx
ret

Function at 0x4b1cf0
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
push 0x4000
call fcn.004b05b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4b1d11
pop edi
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esp + 0x10]
push ebx
push 0
push eax
call fcn.004b3360
mov edi, eax
add esp, 0xc
test edi, edi
jge 0x4b1d36
push esi
call fcn.004b0640
add esp, 4
pop edi
pop esi
mov al, 1
pop ebx
ret
push ebp
push 0x4000
push esi
push edi
call fcn.004ca0c1
push ebx
push edi
mov ebp, eax
call fcn.004b33d0
push 0x4b1d70
push ebp
push esi
call fcn.004b4700
push esi
call fcn.004b0640
add esp, 0x24
pop ebp
pop edi
pop esi
xor al, al
pop ebx
ret
Function at 0x4b3090
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
push 0x67e180
xor bl, bl
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x67e0a0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x4b310b
push 0x4c
push 1
call fcn.004c7b95
mov esi, eax
add esp, 8
test esi, esi
jne 0x4b30d3
push 0x67e180
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret
mov ecx, dword [0x67e0a0]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x66f690]
inc eax
lea edx, [esi + 0xc]
mov dword [0x66f690], eax
push edx
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esi + 4]
push 0
push eax
call fcn.004b6ba0
add esp, 8
mov byte [esi + 0x3c], 1
push 0x67e180
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov al, bl
pop ebx
ret

Function at 0x4b3590
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.004c776d
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.004ca0c1
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x4b368a
call fcn.004c776d
cmp dword [eax], 0
je 0x4b35d7
call fcn.004c776d
mov ebp, dword [eax]
jmp 0x4b35da
or ebp, 0xffffffff
call fcn.004b3120
test esi, esi
mov dword [eax], ebp
jne 0x4b35ef
call fcn.004c776d
cmp dword [eax], 4
je 0x4b363f
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x4b3622
cmp esi, 0xffffffff
je 0x4b3664
test al, 6
je 0x4b3622
call fcn.004b3120
mov ecx, dword [eax]
push ecx
push ebx
call fcn.004b6bd0
add esp, 4
push eax
push 0x24
push 9
call fcn.004b3970
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x4b3682
test al, 6
je 0x4b3630
test ah, 2
je 0x4b3682
test esi, esi
jbe 0x4b368e
test ah, 2
je 0x4b368e
add dword [esp + 0x18], esi
sub edi, esi
call fcn.004c776d
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.004ca0c1
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x4b368a
jmp 0x4b35c4
call fcn.004b3120
mov eax, dword [eax]
push eax
push ebx
call fcn.004b6bd0
add esp, 4
push eax
push 0x24
push 2
call fcn.004b3970
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
mov eax, dword [esp + 0x20]
test al, 6
je 0x4b369b
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
test ah, 2
je 0x4b36a4
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c8693
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004c76fa
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4c86b6
test byte [esp + 8], 2
je 0x4c86b6
call fcn.004c776d
mov dword [eax], 0xd
call fcn.004c7776
mov dword [eax], 5
jmp 0x4c868f
xor eax, eax
ret
Function at 0x4defb8
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4deff0
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004dd06c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004dd044
jmp 0x4deffc
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4e06a6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4e06e8
call fcn.004e615f
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4e06e8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4e06df
xor eax, eax
jmp 0x4e06f0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004e06f6
pop edi
pop esi
pop ebx
ret 4

Function at 0x4e668f
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4e66bd
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4e66db
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004e65f5
jmp 0x4e66db
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4e66db
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004e65f5
test edi, edi
mov eax, edi
jne 0x4e66c5
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x10001060
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call fcn.1000106f
Function at 0x401000
Capabilities:
Create process on windows
Terminate process

Disassembly:
push edi
mov edi, 0x405030
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
je 0x401030
push 1
push eax
push eax
push 0x405030
push str.OPEN
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
xor eax, eax
ret 0x10

Function at 0x401c85
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4051f0
cmp edx, dword [eax]
je 0x401ca7
add eax, 8
inc ecx
cmp eax, 0x405280
jl 0x401c98
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4051f0]
jne 0x401dd5
mov eax, dword [0x4055a8]
cmp eax, 1
je 0x401daf
test eax, eax
jne 0x401cd8
cmp dword [0x405140], 1
je 0x401daf
cmp edx, 0xfc
je 0x401dd5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401d0f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00402230
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004023a0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x401d52
lea eax, [ebp - 0x1a4]
push eax
call fcn.004023a0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x404380
push edi
call fcn.00403030
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00402230
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00402240
lea eax, [ebp - 0xa0]
push 0x404360
push eax
call fcn.00402240
push dword [esi + 0x4051f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00402240
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00402f9e
add esp, 0x2c
pop edi
jmp 0x401dd5
lea eax, [ebp + 8]
lea esi, [esi + 0x4051f4]
push 0
push eax
push dword [esi]
call fcn.004023a0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x421824
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push esi
sub esp, 8
mov edx, 0x2bf20
call fcn.0046f93c
mov dword [ebp - 0x14], edx
mov eax, dword [0x57ebdc]
mov edx, dword [ebp - 0x14]
inc eax
add edx, eax
mov eax, dword [0x574430]
mov ebx, dword [ebp - 0x14]
inc eax
xor ecx, ecx
add ebx, eax
xor eax, eax
movzx esi, byte [edx + 0x257]
mov al, byte [edx]
add esi, eax
xor eax, eax
mov al, byte [edx + 0x258]
lea eax, [eax + eax*4]
add eax, esi
movzx esi, byte [edx + 0x259]
add esi, eax
call fcn.004794dd
sar esi, 3
and eax, 7
sub esi, eax
mov eax, esi
test esi, esi
jl 0x4218f4
mov byte [edx], al
and eax, 0xff
sar eax, 4
add eax, 0x30
inc edx
mov dword [ebp - 0x18], eax
inc ebx
mov al, byte [ebp - 0x18]
inc ecx
mov byte [ebx - 1], al
cmp ecx, 0x256
jl 0x421853
mov ecx, dword [ebp - 0x14]
add ecx, 0x258
mov dword [ebp - 0x14], ecx
cmp ecx, 0x34968
jne 0x42183b
mov ecx, dword [0x57ebdc]
xor edx, edx
add ecx, 0x34968
call fcn.004794dd
and al, 0x7f
inc ecx
add al, 0x80
inc edx
mov byte [ecx - 1], al
cmp edx, 0x258
jl 0x4218d0
call fcn.0046f634
lea esp, [ebp - 0x10]
pop esi
pop edx
pop ecx
pop ebx
pop ebp
ret
xor eax, esi
jmp 0x421889
Function at 0x47667c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
push edx
push esi
push edi
mov ecx, 0x35
mov edi, 0x5993bc
mov esi, 0x5738ec
rep movsd dword es:[edi], dword [esi]
mov edx, 1
mov ecx, 0x10
mov esi, 0x5744d8
mov edi, 0x5993a8
mov ebx, 0x49923c
push edi
mov eax, ecx
shr ecx, 2
movsd dword es:[edi], dword [esi]
mov cl, al
and cl, 3
repne movsb byte es:[edi], byte [esi]
pop edi
mov eax, 0x8000
mov dword [0x599494], edx
xor ecx, ecx
mov edx, 0x499254
mov dword [0x5993b8], ecx
mov ecx, 0x15a
xor esi, esi
call fcn.00424e90
mov dword [0x599490], eax
mov edx, eax
xor eax, eax
mov ebx, esi
xor ebx, eax
sar ebx, 4
inc edx
and ebx, 1
inc eax
mov byte [edx - 1], bl
cmp eax, 0x100
jl 0x4766eb
inc esi
cmp esi, 0x80
jl 0x4766e9
mov ebx, 8
mov esi, 0x100
mov edi, pe_nt_image_headers32
mov edx, 0x5a0e1bca
mov ecx, 0xff
xor eax, eax
mov dword [0x599370], ebx
mov dword [0x599374], esi
mov dword [0x599378], edi
mov dword [0x59937c], eax
mov dword [0x59938c], edx
mov dword [0x599380], ecx
mov ebx, 0xffffff80
mov esi, 0xff00
mov eax, dword [0x599490]
mov edx, 3
mov dword [0x599394], eax
mov dword [0x599388], ebx
mov eax, 0x5735e4
mov dword [0x599384], esi
call fcn.00474894
mov eax, 0x599370
call fcn.00474978
lea esp, [ebp - 0x14]
pop edi
pop esi
pop edx
pop ecx
pop ebx
pop ebp
ret
Function at 0x10037ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x10037f1c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const___long_long___int64__]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x20], esi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov dword [esp + 0x24], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], eax
test ecx, ecx
je 0x10037f44
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x10037f4a
xor ecx, ecx
mov dword [esp + 0x18], eax
mov eax, ecx
cdq
mov dword [esp + 0x10], eax
mov ecx, edx
mov dword [esp + 0x14], ecx
test edi, edi
jl 0x10037fb2
jg 0x10037f61
test esi, esi
je 0x10037fb2
test ecx, ecx
jl 0x10037fad
jg 0x10037f6b
test eax, eax
je 0x10037fad
cmp edi, ecx
jg 0x10037f7f
jl 0x10037f75
cmp esi, eax
jae 0x10037f7f
mov eax, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x24]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x24]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [esp + 0x14]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x10037fb5
mov ecx, dword [ebp + 8]
jmp 0x10037fbf
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x10037fd9
jg 0x10037fbf
test esi, esi
je 0x10037fd9
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x10037fd9
push eax
push esi
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10037ff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], esi
test eax, eax
jg 0x1003801c
jl 0x10038010
test ecx, ecx
jne 0x1003801c
pop esi
xor eax, eax
xor edx, edx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x10038035
push eax
push ecx
push esi
mov ecx, ebx
call dword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char___long_long___int64__]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
push edi
mov edi, ecx
mov eax, dword [eax]
mov dword [ebp - 8], eax
test eax, eax
je 0x10038083
mov eax, dword [ebx + 0x2c]
lea edx, [ebx + 0x2c]
mov dword [ebp - 0xc], edx
mov eax, dword [eax]
test eax, eax
je 0x10038089
mov edi, dword [ebp - 4]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push dword [ebp - 8]
push edi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [ebp - 4], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov esi, dword [ebp - 4]
jmp 0x10038089
lea eax, [ebx + 0x2c]
mov dword [ebp - 0xc], eax
cmp dword [ebx + 0x4c], 0
je 0x100380f6
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x100380b2
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [eax], edx
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp edi, 0xfff
jbe 0x100380e4
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call eax
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x100380f6
cmp edi, eax
mov eax, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
ja 0x100380c0
test edi, edi
je 0x100380f6
push dword [ebx + 0x4c]
push edi
push 1
push esi
call eax
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc