joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10020d4b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1004a300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 4
lea esi, [ebp - 8]
lea ecx, [eax + 4]
pop edi
mov al, byte [esi - 0xc]
mov dl, byte [esi - 8]
call fcn.10020f11
mov bl, al
mov al, dl
call fcn.10020f11
xor bl, al
xor bl, byte [esi - 4]
mov al, dl
xor bl, byte [esi]
xor bl, dl
mov byte [ecx - 4], bl
call fcn.10020f11
mov bl, al
mov al, byte [esi - 4]
call fcn.10020f11
xor bl, al
xor bl, byte [esi - 0xc]
mov al, byte [esi - 4]
xor bl, byte [esi]
xor bl, al
mov byte [ecx], bl
call fcn.10020f11
mov bl, al
mov al, byte [esi]
call fcn.10020f11
xor bl, al
mov al, byte [esi]
xor bl, dl
xor bl, byte [esi - 0xc]
xor bl, al
mov byte [ecx + 4], bl
call fcn.10020f11
mov bl, al
mov al, byte [esi - 0xc]
call fcn.10020f11
xor bl, al
xor bl, dl
xor bl, byte [esi - 4]
xor bl, byte [esi - 0xc]
inc ecx
mov byte [ecx + 7], bl
inc esi
dec edi
jne 0x10020d73
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022b9f
leave
ret 4

Function at 0x10020e00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1004a300]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x10]
lea esi, [eax + 4]
mov dword [ebp - 0x1c], 4
mov al, byte [edi - 4]
mov bl, byte [edi + 4]
call fcn.10020f8d
push ebx
mov dl, al
call fcn.10020f66
xor dl, al
movzx eax, byte [edi + 8]
push eax
call fcn.10020f21
xor dl, al
movzx eax, byte [edi]
push eax
call fcn.10020f3f
xor dl, al
movzx eax, byte [edi - 4]
push eax
mov byte [esi - 4], dl
call fcn.10020f21
push ebx
mov byte [ebp - 0x15], al
call fcn.10020f3f
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [edi + 8]
push eax
mov byte [ebp - 0x15], cl
call fcn.10020f66
mov cl, byte [ebp - 0x15]
xor cl, al
mov al, byte [edi]
mov byte [ebp - 0x15], cl
call fcn.10020f8d
mov cl, byte [ebp - 0x15]
xor cl, al
movzx eax, byte [edi - 4]
push eax
mov byte [esi], cl
call fcn.10020f66
mov bl, al
mov al, byte [edi + 4]
call fcn.10020f8d
movzx edx, byte [edi + 8]
push edx
xor bl, al
call fcn.10020f3f
xor bl, al
movzx eax, byte [edi]
push eax
call fcn.10020f21
xor bl, al
movzx eax, byte [edi - 4]
push eax
mov byte [esi + 4], bl
call fcn.10020f3f
mov bl, al
movzx eax, byte [edi + 4]
push eax
call fcn.10020f21
xor bl, al
mov al, dl
call fcn.10020f8d
xor bl, al
movzx eax, byte [edi]
push eax
call fcn.10020f66
xor bl, al
mov byte [esi + 8], bl
inc esi
inc edi
dec dword [ebp - 0x1c]
jne 0x10020e2c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10022b9f
leave
ret 4
Function at 0x10022558
Capabilities:
Hash data using sha1

Disassembly:
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
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 0x10022b9f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1004a300]
jne 0x10022ba9
repz ret
jmp fcn.10025014

Function at 0x1002eb55
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.1002530c
and dword [ebp - 4], 0
cmp dword [0x1004d1e4], 0
mov ebx, eax
jne 0x1002ec06
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1002ecb7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1002ecb7
push eax
call fcn.1002529a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1004d1e4], eax
call esi
push eax
call fcn.1002529a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1004d1e8], eax
call esi
push eax
call fcn.1002529a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1004d1ec], eax
call esi
push eax
call fcn.1002529a
pop ecx
mov dword [0x1004d1f4], eax
test eax, eax
je 0x1002ec06
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1002529a
pop ecx
mov dword [0x1004d1f0], eax
mov eax, dword [0x1004d1f0]
cmp eax, ebx
je 0x1002ec5e
cmp dword [0x1004d1f4], ebx
je 0x1002ec5e
push eax
call fcn.10025315
push dword [0x1004d1f4]
mov esi, eax
call fcn.10025315
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1002ec5e
test edi, edi
je 0x1002ec5e
call esi
test eax, eax
je 0x1002ec55
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1002ec55
test byte [ebp - 0xc], 1
jne 0x1002ec5e
or dword [ebp + 0x10], 0x200000
jmp 0x1002ec97
mov eax, dword [0x1004d1e8]
cmp eax, ebx
je 0x1002ec97
push eax
call fcn.10025315
pop ecx
test eax, eax
je 0x1002ec97
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1002ec97
mov eax, dword [0x1004d1ec]
cmp eax, ebx
je 0x1002ec97
push eax
call fcn.10025315
pop ecx
test eax, eax
je 0x1002ec97
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1004d1e4]
call fcn.10025315
pop ecx
test eax, eax
je 0x1002ecb7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1002ecb9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x29a05134
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x29a05143
pop dword [ebp - 0x3c]
mov eax, 0xecb1498c
sub eax, 0xc310f849
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x768dac56
sub dword [ebp - 0x4c], 0x283b670b
mov dword [ebp - 0x48], 0x31ad8793
add dword [ebp - 0x48], 0x85c4b2
mov dword [ebp - 0x44], 0x6ab707e9
add dword [ebp - 0x44], 0xe1953c45
mov dword [ebp - 0x40], 0x83c58bc2
sub dword [ebp - 0x40], 0x83c58bc2
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x486207f3
add dword [ebp - 0x4c], 0x2c106163
mov dword [ebp - 0x48], 0xd6ca3b94
add dword [ebp - 0x48], 0x6aa225e1
mov dword [ebp - 0x44], 0xbd6e5d1e
sub dword [ebp - 0x44], 0x59fef0b2
mov dword [ebp - 0x40], 0xa9f064c8
add dword [ebp - 0x40], 0x560f9b38
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x7d3fb38d
add eax, 0xac618cb7
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x37f18
push 0
call eax
mov ecx, 0x87f74d20
sub ecx, 0x87f70e82
mov esi, eax
mov edx, 0x2d1729ac
add edx, 0xfc8af654
add edx, dword [ebp - 0x3c]
mov edi, 0xbd9b7961
sub edi, 0x3b4cc74b
mov ebx, dword [edx]
sub dword [ebp - 0x28], 0xe0626aad
xor ebx, edi
sub dword [ebp - 0x14], 0x5a150b44
mov dword [esi], ebx
sub dword [ebp - 0x28], edx
add esi, 4
add edx, 0x22f68a6a
add edx, 0xdd09759a
loop 0x29a05260
add eax, 0xed4b
xor ebx, ebx
add ebx, eax
add eax, 0xeeb326da
sub eax, 0xeeb326d5
mov ecx, 0x9cd2eb3f
add ecx, 0x8ccd14c1
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x402f9d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x408310]
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.00401ef3
and dword [ebp - 0x14], 0
cmp dword [0x40941c], 0
mov dword [ebp - 0x18], eax
jne 0x403050
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4030f8
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4030f8
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x40941c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x409420], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x409424], eax
call edi
push eax
call esi
mov dword [0x40942c], eax
test eax, eax
je 0x403050
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x409428], eax
mov eax, dword [0x409428]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4030a9
cmp dword [0x40942c], ecx
je 0x4030a9
push eax
call esi
push dword [0x40942c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4030a9
test ebx, ebx
je 0x4030a9
call edi
test eax, eax
je 0x4030a0
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4030a0
test byte [ebp - 8], 1
jne 0x4030a9
or dword [ebp + 0x10], 0x200000
jmp 0x4030dc
mov eax, dword [0x409420]
cmp eax, dword [ebp - 0x18]
je 0x4030dc
push eax
call esi
test eax, eax
je 0x4030dc
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4030dc
mov eax, dword [0x409424]
cmp eax, dword [ebp - 0x18]
je 0x4030dc
push eax
call esi
test eax, eax
je 0x4030dc
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x40941c]
call esi
test eax, eax
je 0x4030f8
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4030fa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403308
leave
ret

Function at 0x403308
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408310]
jne 0x403312
repz ret
jmp fcn.00404576

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x1003db80
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
push ebx
mov ebx, ecx
mov dword [esp + 0x18], 0
push esi
push edi
mov edi, edx
mov dword [esp + 0x2c], ebx
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x6c]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x68]
sub eax, edx
mov dword [esp + 0x10], edx
cmp eax, 0x24
jae 0x1003dbca
mov edx, 0x24
call fcn.10038ec0
test eax, eax
js 0x1003ef24
mov edx, dword [esp + 0x10]
mov esi, dword [ebx + 0x64]
mov eax, dword [ebp + 8]
add esi, edx
add dword [ebx + 0x6c], 0x24
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0
mov dword [esi + 0xc], edi
mov dword [esi + 0x20], eax
mov edx, 1
nop
mov ecx, dword [esi + 0xc]
mov edi, dword [ebx]
mov dword [esi + 8], edi
cmp dword [ecx], 0xf
jne 0x1003dc24
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x1003dc15
mov eax, dword [esp + 0x14]
sub eax, edi
sar eax, 2
cmp eax, edx
jb 0x1003dd13
mov eax, dword [ecx + 4]
inc eax
lea eax, [ecx + eax*4]
mov dword [esi + 0xc], eax
mov edx, 1
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
test eax, 0xfff
jne 0x1003dc7b
mov edi, dword [0x103fb118]
mov eax, dword [edi + 8]
mov dword [esp + 0x24], eax
mov eax, dword [0x103fa66c]
test eax, eax
cmove eax, edx
mov dword [0x103fa66c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [0x103fb038]
jne 0x1003dc7b
mov eax, dword [esp + 0x24]
cmp eax, dword [0x103fb020]
jne 0x1003dc7b
push edi
call sym.python310.dll__PyErr_CheckSignalsTstate
add esp, 4
test eax, eax
jne 0x1003eefa
mov eax, dword [esi + 0xc]
mov ecx, dword [eax]
lea edi, [eax + 4]
mov dword [esp + 0x18], edi
mov dword [esi + 0xc], edi
cmp ecx, 0x27
ja 0x1003ef21
jmp dword [ecx*4 + 0x1003ef3c]
xor edi, edi
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov esi, eax
mov edx, dword [ebx + 0x6c]
add edx, 0xffffffdc
mov dword [esp + 0x10], eax
mov dword [ebx + 0x6c], edx
cmp esi, 0xffffffff
je 0x1003ea37
add esi, dword [ebx + 0x64]
lea eax, [ecx - 1]
cmp eax, 0xc
ja 0x1003ea37
jmp dword [eax*4 + 0x1003efdc]
invalid
add al, byte [eax]
add byte [ebx], al
invalid
cli
invalid
rcl byte [ebp + 0x5d39ca4d], cl
or al, 0x75
adc dl, byte [edi - 1]
xchg ebp, eax
dec eax
invalid
Function at 0x1003f550
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x518], 0xea
lea eax, [ebp - 0x524]
push eax
call fcn.1003e97b
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1003e930
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.1003e96b
cdq
push edi
add al, 0x7a
and byte [ebp - 0x514], 0
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.1003e97b
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1003e930
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.1003e96b
arpl word [edx + 0x4684b0c], si
add dword [eax], eax
add byte [ebp - 0x3337b], cl
call dword [eax - 1]
jne 0x1003f634
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x1003f65f
push 0xc6fffffc
test dword [edx + edi*8 - 0x7cfe0001], edi
mov ebp, 0xfffffc68
add byte [edi + edx - 0x7d], dh
mov ebp, 0xfffffc68
add byte [edi], cl
test ah, dl
add dword [eax], eax
add byte [ebx + 0xf010c7d], al
test dl, cl
add dword [eax], eax
add byte [ebx + 0xf080c7d], al
test dword [eax - 0x7fffffff], ecx
movsd dword es:[edi], dword [esi]
dec eax
stc
invalid
cmp dword [ebp - 0x398], 0
je 0x1003f829
cmp dword [ebp + 0xc], 1
je 0x1003f829
cmp dword [ebp + 0xc], 8
jne 0x1003f7f1
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
invalid
test dword [esi - 7], edx
invalid
Function at 0x1001d471
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10048aac], 0
push esi
push edi
jne 0x1001d3e7
call fcn.1001d353
test eax, eax
je 0x1001d42c
mov eax, dword [0x10048aac]
cmp eax, 1
jne 0x1001d408
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x1001d42c
jmp 0x1001d46e
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x1001d46e
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1001d430
xor eax, eax
jmp 0x1001d46e
mov eax, dword [esi]
push dword [0x10048aac]
call edi
mov edi, eax
test edi, edi
je 0x1001d452
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x1001d46e
lea edi, [esi + 0xff0]
push esi
push dword [0x10048aac]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1001d458
mov eax, esi
pop edi
pop esi
ret
jmp 0x1001d3d3

Function at 0x1001d742
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10047578]
jne 0x1001d74c
repz ret
jmp fcn.10023329

Function at 0x1001f6e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x1001f6ef
pop dword [ebp - 0x50]
mov eax, 0x8c4b32c0
add eax, 0x83b6c42f
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x3f722
push 0
mov eax, 0xbb97970f
add eax, 0x546bebc1
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x439a
mov edi, eax
mov edx, 0x725d7278
sub edx, 0x6255f878
add edx, dword [ebp - 0x50]
mov esi, 0x2e3d0c98
add esi, 0xee01d5ea
sub dword [ebp - 0x1c], edi
mov ebx, dword [edx]
add dword [ebp - 0x34], 0x94eb192
xor ebx, esi
mov dword [ebp - 0x38], 0xd7248fc8
mov dword [edi], ebx
xor dword [ebp - 0x18], 0x83a1e03b
add edi, 0xb77c0768
sub edi, 0xb77c0764
add edx, 0xf62b49f
sub edx, 0xf62b49b
loop 0x1001f748
add eax, 0x1013b
mov ebx, eax
add eax, 0xaef732f4
sub eax, 0xaef732ef
mov ecx, 0x8ec4723f
sub ecx, 0x7ec4723f
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x405646
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x405655
pop dword [ebp - 0x18]
mov eax, 0xc430586
add eax, 0xf3fd50cf
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x9e5349f8
sub dword [ebp - 0x28], 0x500104ad
mov dword [ebp - 0x24], 0x41beeaf3
add dword [ebp - 0x24], 0xf0746152
mov dword [ebp - 0x20], 0x6b3ead19
sub dword [ebp - 0x20], 0x1ef268eb
mov dword [ebp - 0x1c], 0x6e330165
add dword [ebp - 0x1c], 0x91ccfe9b
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x352cba05
add dword [ebp - 0x28], 0x3f45af51
mov dword [ebp - 0x24], 0x7559b2fb
sub dword [ebp - 0x24], 0x33ed5186
mov dword [ebp - 0x20], 0x1e2e8625
add dword [ebp - 0x20], 0x4540e647
mov dword [ebp - 0x1c], 0xcff31a5
sub dword [ebp - 0x1c], 0xcff31a5
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0x1aa7d18a
add eax, 0xe5989f86
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x394af
push 0
call eax
mov ecx, 0xb523b94d
add ecx, 0x4adc9831
xor edx, edx
add edx, eax
mov ebx, 0x436000
add ebx, dword [ebp - 0x18]
mov esi, 0x2a92ec92
sub dword [ebp - 0xc], edi
mov edi, dword [ebx]
xor dword [ebp - 0xc], edx
sub edi, esi
mov dword [edx], edi
add dword [ebp - 0x14], 0x6ee96e0d
add edx, 0x3bf03cf9
add edx, 0xc40fc30b
add ebx, 0x84b57cc9
sub ebx, 0x84b57cc5
loop 0x405768
add eax, 0x6aa35095
add eax, 0x955de836
xor ebx, ebx
add ebx, eax
add eax, 0x46ef936
add eax, 0xfb9106cf
mov ecx, 0x9e72bdb
sub ecx, 0x9a72bdb
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421968
push esi
call fcn.00405d21
push esi
call fcn.004058a8
mov edi, eax
test edi, edi
jne 0x405916
xor eax, eax
jmp 0x405968
push edi
call fcn.00405f83
test byte [0x423f78], 0x80
je 0x40592f
mov al, byte [edi]
test al, al
je 0x405912
cmp al, 0x5c
je 0x405912
sub edi, esi
jmp 0x405947
call fcn.0040601c
test eax, eax
je 0x405941
test byte [eax], 0x10
je 0x405912
push esi
call fcn.0040585b
push esi
call sub.kernel32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405933
call fcn.00405814
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4059d9
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4059f5
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
ret 4

Function at 0x4059f8
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileA]
ret 0xc
Function at 0x41c580
Capabilities:
Get networking parameters

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4e1370]
test al, 1
jne 0x41c5bd
or eax, 1
mov dword [0x4e136c], 0xf
push 0x4bc460
mov dword [0x4e1370], eax
mov dword [0x4e1368], 0
mov byte [0x4e1358], 0
call fcn.00494a1a
add esp, 4
cmp dword [0x4e1368], 0
push esi
je 0x41c5f2
mov esi, dword [ebp + 8]
mov ecx, esi
push 0xffffffffffffffff
push 0
push 0x4e1358
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.00406190
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push edi
push 0x248
push 0x40
call esi
mov edi, eax
mov dword [ebp - 4], 0x248
lea eax, [ebp - 4]
push eax
push edi
call sub.IPHLPAPI.DLL_GetNetworkParams
cmp eax, 0x6f
jne 0x41c62a
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 4]
push 0x40
call esi
mov edi, eax
lea eax, [ebp - 4]
push eax
push edi
call sub.IPHLPAPI.DLL_GetNetworkParams
test eax, eax
jne 0x41c6af
cmp byte [edi + 0x110], al
lea edx, [edi + 0x110]
jne 0x41c64a
xor ecx, ecx
jmp 0x41c659
mov ecx, edx
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41c650
sub ecx, esi
push ecx
push edx
mov ecx, 0x4e1358
call fcn.00405e20
mov esi, dword [edi + 0x10c]
test esi, esi
je 0x41c6af
push ebx
push 1
push 0x4c0bb8
mov ecx, 0x4e1358
call fcn.00405e20
cmp byte [esi + 4], 0
lea edx, [esi + 4]
jne 0x41c68e
xor ecx, ecx
jmp 0x41c69c
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41c693
sub ecx, ebx
push ecx
push edx
mov ecx, 0x4e1358
call fcn.00405e20
mov esi, dword [esi]
test esi, esi
jne 0x41c670
pop ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [ebp + 8]
mov ecx, esi
push 0xffffffffffffffff
push 0
push 0x4e1358
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.00406190
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41dd90
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push dword [esi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x41ddaf
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x41ddc7
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push dword [esi]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41de18
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x41de23
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
test eax, eax
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret 4