joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e381d
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 0x4e3848
call fcn.004ea64b
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 0x4e386b
push eax
push dword [esi + 4]
call fcn.004e37a3
push esi
push eax
mov ecx, 0x576f80
call fcn.004e342a
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x4e42d1
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x5304dd
call fcn.00506adb
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x20]
mov edi, dword [ebp + 8]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call fcn.004e4291
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.00402c10
push dword [esi + 8]
mov edi, dword [edi + 8]
push dword [ebp + 0x10]
mov byte [ebp - 4], 1
push 3
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
jne 0x4e4338
push eax
push dword [esi + 8]
call fcn.004e37a3
push dword [esi + 0xc]
mov ecx, 0x576f80
push eax
call fcn.004e342a
mov eax, esi
call fcn.00506bb3
ret 0x1c

Function at 0x4e81cb
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 0x4e8213
call fcn.004ea64b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4e8213
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4e8256
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 0x4e823f
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 0x4e823f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4e8253
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 0x4e9c7d
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 0x4e9ca1
cmp dword [edi + 0x54], 0
jne 0x4e9ca1
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.004ea64b
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.004e9c3e
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 0x4f0ae4
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 0x4f0b2b
call fcn.004ea64b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4f0b2b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4f0b47
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.004f065c
mov esi, eax
test edi, edi
je 0x4f0b45
test ebx, ebx
je 0x4f0b45
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4f127e
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5309b8
call fcn.00506adb
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x4f12a3
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4f12e9
lea ecx, [ebp - 0x10]
call fcn.00402c10
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.00423900
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004027c0
mov eax, esi
call fcn.00506bb3
ret 8
Function at 0x5007b7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x56d940]
jne 0x5007c1
repz ret
jmp fcn.0050a76e

Function at 0x500c7f
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 0x500cb0
call fcn.00503bc1
mov dword [eax], esi
call fcn.00503bae
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00500ae9
add esp, 0x14
push 0x16
pop eax
jmp 0x500d05
test dword [ebp + 0xc], 0xfffffff9
jne 0x500c8c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x500cdd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00503bd4
pop ecx
call fcn.00503bae
mov eax, dword [eax]
jmp 0x500d05
test al, 0x10
jne 0x500d03
test al, 1
je 0x500d03
test byte [ebp + 0xc], 2
je 0x500d03
call fcn.00503bc1
mov dword [eax], 5
call fcn.00503bae
mov dword [eax], 0xd
jmp 0x500cd4
xor eax, eax
pop esi
pop ebp
ret

Function at 0x51654d
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.0050a0d2
and dword [ebp - 4], 0
cmp dword [0x579a1c], 0
mov ebx, eax
jne 0x5165fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x5166af
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x5166af
push eax
call fcn.0050a060
mov dword [esp], 0x53ff38
push edi
mov dword [0x579a1c], eax
call esi
push eax
call fcn.0050a060
mov dword [esp], 0x53ff24
push edi
mov dword [0x579a20], eax
call esi
push eax
call fcn.0050a060
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x579a24], eax
call esi
push eax
call fcn.0050a060
pop ecx
mov dword [0x579a2c], eax
test eax, eax
je 0x5165fe
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0050a060
pop ecx
mov dword [0x579a28], eax
mov eax, dword [0x579a28]
cmp eax, ebx
je 0x516656
cmp dword [0x579a2c], ebx
je 0x516656
push eax
call fcn.0050a0db
push dword [0x579a2c]
mov esi, eax
call fcn.0050a0db
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x516656
test edi, edi
je 0x516656
call esi
test eax, eax
je 0x51664d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x51664d
test byte [ebp - 0xc], 1
jne 0x516656
or dword [ebp + 0x10], 0x200000
jmp 0x51668f
mov eax, dword [0x579a20]
cmp eax, ebx
je 0x51668f
push eax
call fcn.0050a0db
pop ecx
test eax, eax
je 0x51668f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x51668f
mov eax, dword [0x579a24]
cmp eax, ebx
je 0x51668f
push eax
call fcn.0050a0db
pop ecx
test eax, eax
je 0x51668f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x579a1c]
call fcn.0050a0db
pop ecx
test eax, eax
je 0x5166af
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x5166b1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e620
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40e642
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40e649
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40e638
mov eax, 1
add ebx, ebx
jne 0x40e65b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40e650
jne 0x40e66c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e650
xor ecx, ecx
sub eax, 3
jb 0x40e680
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40e6f2
mov ebp, eax
add ebx, ebx
jne 0x40e68b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40e698
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40e6bc
inc ecx
add ebx, ebx
jne 0x40e6a8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40e69d
jne 0x40e6b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40e69d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40e6dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40e6cd
jmp 0x40e63e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40e6dc
add edi, ecx
jmp 0x40e63e
pop esi
mov edi, esi
mov ecx, 0xe7
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40e6fa
cmp byte [edi], 0
jne 0x40e6fa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40e6ff
lea edi, [esi + 0xc000]
mov eax, dword [edi]
or eax, eax
je 0x40e777
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe1dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe2e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40e72c
mov ecx, edi
jns 0x40e75b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe2e4]
or eax, eax
je 0x40e771
mov dword [ebx], eax
add ebx, 4
jmp 0x40e749
call dword [esi + 0xe2f4]
mov ebp, dword [esi + 0xe2e8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40e7ab
sub esp, 0xffffff80
jmp 0x407418
Function at 0x10024f20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x10024f2f
pop dword [ebp - 0x1c]
mov eax, 0x10024f2f
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x5ed34dee
sub dword [ebp - 0x2c], 0x108108a3
mov dword [ebp - 0x28], 0x40cda174
add dword [ebp - 0x28], 0xf165aad1
mov dword [ebp - 0x24], 0xe9ea7a1c
add dword [ebp - 0x24], 0x6261ca12
mov dword [ebp - 0x20], 0xb17628c3
add dword [ebp - 0x20], 0x4e89d73d
lea eax, [ebp - 0x2c]
push eax
mov eax, 0xfb15a31d
add eax, 0x14f08cfb
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x99af4849
add dword [ebp - 0x2c], 0xdac3210d
mov dword [ebp - 0x28], 0x9204e03a
sub dword [ebp - 0x28], 0x50987ec5
mov dword [ebp - 0x24], 0x5ca75808
sub dword [ebp - 0x24], 0xf937eb9c
mov dword [ebp - 0x20], 0xa3ce9632
add dword [ebp - 0x20], 0x5c3169ce
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0xfe8d36a9
add eax, 0x1178f977
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x540a8
push 0
call eax
mov ecx, 0xbc9fa687
sub ecx, 0xbc9f5ec2
mov esi, eax
mov edi, 0x213924b4
sub edi, 0x112f9eb4
add edi, dword [ebp - 0x1c]
mov ebx, 0xe707b0a2
sub ebx, 0xb7f47add
mov edx, dword [edi]
add edx, ebx
add dword [ebp - 0x14], eax
mov dword [esi], edx
xor dword [ebp - 8], 0x116a8dcc
add esi, 0xe169fc4f
add esi, 0x1e9603b5
add edi, 0x5b366fce
add edi, 0xa4c99036
loop 0x1002504c
add eax, 0x111e7
mov ebx, eax
add eax, 0xa16406d2
sub eax, 0xa16406cd
mov ecx, 0x1e3ca057
sub ecx, 0xe3ca057
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x40270e
Capabilities:
Access the windows event log
Clear windows event logs
Get common file path
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x800
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
xor ebx, ebx
call edi
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
cmp ebx, 0x58ce99d
jg 0x40273e
inc ebx
cmp ebx, 0x1f6502b0
jl 0x402724
cmp dword [0x4ad264], 0x400
jne 0x4027c0
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push esi
push esi
lea eax, [ebp - 0x800]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push esi
push esi
call dword [sym.imp.USER32.dll_DdeCmpStringHandles]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutNameA]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_BackupEventLogA]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push str.nojojatobajehivonafepuxefemi
push esi
call fcn.00402a88
push esi
push esi
call fcn.00402e34
fldz
add esp, 8
fstp qword [esp]
call fcn.00402cd0
fstp st(0)
mov eax, esp
mov dword [eax], esi
mov dword [eax + 4], esi
call fcn.00402860
fstp st(0)
push esi
call fcn.00402ee1
push esi
call fcn.00402ef0
add esp, 0x10
xor ebx, ebx
cmp ebx, 0xd0fe
jge 0x4027d1
push esi
call dword [sym.imp.USER32.dll_GetCaretPos]
call edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp ebx, 0x58bc6e
jg 0x4027eb
inc ebx
cmp ebx, 0xe52f
jl 0x4027c2
mov eax, dword [0x4a6304]
mov dword [0x4ad264], eax
call fcn.0040249e
mov edi, 0x3078f
cmp dword [0x4ad264], 0x51f
jne 0x402819
push esi
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x4027ff
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x4071ae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a5d58]
jne 0x4071b8
repz ret
jmp fcn.00409aee
Function at 0x409718
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a5d58]
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.00405b0c
and dword [ebp - 0x14], 0
cmp dword [0x4a7e24], 0
mov dword [ebp - 0x18], eax
jne 0x4097cb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409873
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409873
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4a7e24], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4a7e28], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4a7e2c], eax
call edi
push eax
call esi
mov dword [0x4a7e34], eax
test eax, eax
je 0x4097cb
push 0x4a3d18
push ebx
call edi
push eax
call esi
mov dword [0x4a7e30], eax
mov eax, dword [0x4a7e30]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409824
cmp dword [0x4a7e34], ecx
je 0x409824
push eax
call esi
push dword [0x4a7e34]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409824
test ebx, ebx
je 0x409824
call edi
test eax, eax
je 0x40981b
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40981b
test byte [ebp - 8], 1
jne 0x409824
or dword [ebp + 0x10], 0x200000
jmp 0x409857
mov eax, dword [0x4a7e28]
cmp eax, dword [ebp - 0x18]
je 0x409857
push eax
call esi
test eax, eax
je 0x409857
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x409857
mov eax, dword [0x4a7e2c]
cmp eax, dword [ebp - 0x18]
je 0x409857
push eax
call esi
test eax, eax
je 0x409857
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a7e24]
call esi
test eax, eax
je 0x409873
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409875
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004071ae
leave
ret

Function at 0x575b73
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.00575bf2
jae 0x575b7f
xor ecx, ecx
call fcn.00575bf2
jae 0x575ba9
xor eax, eax
call fcn.00575bf2
jae 0x575bba
mov al, 0x10
call fcn.00575bf2
adc al, al
jae 0x575b9b
jne 0x575be7
stosb byte es:[edi], al
jmp 0x575b80
call fcn.00575bfe
dec ecx
loop 0x575bc6
mov eax, ebp
call fcn.00575bfc
jmp 0x575be8
lodsb al, byte [esi]
shr eax, 1
je 0x575c0e
adc ecx, 2
mov ebp, eax
jmp 0x575be8
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00575bfc
cmp eax, 0x7d00
jae 0x575be6
cmp eax, 0x500
jae 0x575be7
cmp eax, 0x7f
ja 0x575be8
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x575b80
pop ebp
ret 8
Function at 0x10024a70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x10024a7f
pop dword [ebp - 0xc]
mov eax, 0x76730297
add eax, 0x998f47e8
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x3a6dc
push 0
mov eax, 0xefeabd6
sub eax, 0xfefc1aca
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0xb74a14ba
add ecx, 0x48b6324c
mov edi, eax
mov ebx, 0x71ed8002
add ebx, 0x9e16ebfe
add ebx, dword [ebp - 0xc]
mov edx, 0x63d3737c
add dword [ebp - 8], 0xc8eb12c5
mov esi, dword [ebx]
xor dword [ebp - 4], 0x9d2cbec9
xor esi, edx
add dword [ebp - 8], eax
mov dword [edi], esi
add dword [ebp - 4], esi
add edi, 4
add ebx, 0x94aade43
sub ebx, 0x94aade3f
loop 0x10024ad8
add eax, 0xfa4ae216
add eax, 0x5b62cd5
mov ebx, eax
add eax, 5
mov ecx, 0x8ceaf09e
sub ecx, 0x7ceaf09e
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x41a683
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041a4f4

Function at 0x41aa7d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a460
mov eax, dword [0x47edc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00418464
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41aabf
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41ac1b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00425510
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x481420]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0041b81c
mov ecx, dword [esi*4 + 0x481420]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x41ac14
cmp eax, dword [edi + ecx + 0x24]
jne 0x41ac14
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ac14
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041b81c
add esp, 0x14
test edx, edx
jl 0x41ac14
jg 0x41ab8a
test eax, eax
jb 0x41ac14
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41ac14
jl 0x41aba4
cmp dword [ebp - 0x1008], eax
ja 0x41ac14
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41abc2
test ebx, ebx
je 0x41abfb
cmp ecx, edi
jae 0x41abfb
mov al, byte [ecx]
cmp al, 0xd
jne 0x41abdc
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41abe8
cmp byte [ecx + 1], 0xa
jne 0x41abe8
inc ecx
jmp 0x41abe8
movzx eax, al
movsx eax, byte [eax + 0x47f088]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41abc2
cmp edx, ebx
jne 0x41abc2
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41ac19
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040982d
leave
ret
Function at 0x41acba
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x481420]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41acfa
cmp byte [ebx], 0xa
jne 0x41acfa
or byte [eax + edi + 0x28], 4
jmp 0x41acff
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41adfd
mov al, byte [edx]
cmp al, 0x1a
je 0x41addf
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x41ad2e
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x41ad53
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x41ad5d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x41ad10
jmp 0x41adfd
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41adda
cmp dword [ebp - 0xc], 0
je 0x41adda
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x481420]
test byte [eax + edi + 0x28], 0x48
je 0x41adb4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41ad9f
mov byte [esi], dl
jmp 0x41adb0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x481420]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41adfd
cmp byte [ebp - 1], 0xa
jne 0x41adc3
cmp esi, ebx
jne 0x41adc3
mov byte [esi], 0xa
jmp 0x41adfc
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041b83a
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41adfd
mov byte [esi], 0xd
jmp 0x41adfc
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x481420]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41adf9
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41adfd
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret