joyce8/EMBER2024-capa huggingface dataset:
Function at 0x50b8ff
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 0x50b947
call fcn.004ff2dd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x50b947
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x50b98a
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 0x50b973
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 0x50b973
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x50b987
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 0x51b97e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x583008]
jne 0x51b988
repz ret
jmp fcn.00526033

Function at 0x52051c
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 0x52054d
call fcn.0051e515
mov dword [eax], esi
call fcn.0051e502
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00525319
add esp, 0x14
push 0x16
pop eax
jmp 0x5205a2
test dword [ebp + 0xc], 0xfffffff9
jne 0x520529
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x52057a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0051e528
pop ecx
call fcn.0051e502
mov eax, dword [eax]
jmp 0x5205a2
test al, 0x10
jne 0x5205a0
test al, 1
je 0x5205a0
test byte [ebp + 0xc], 2
je 0x5205a0
call fcn.0051e515
mov dword [eax], 5
call fcn.0051e502
mov dword [eax], 0xd
jmp 0x520571
xor eax, eax
pop esi
pop ebp
ret
Function at 0x5372d9
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.005279f2
and dword [ebp - 4], 0
cmp dword [0x818b5c], 0
mov ebx, eax
jne 0x53738a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x53743b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x569ea0
push edi
call esi
test eax, eax
je 0x53743b
push eax
call fcn.00527980
mov dword [esp], 0x569e90
push edi
mov dword [0x818b5c], eax
call esi
push eax
call fcn.00527980
mov dword [esp], 0x569e7c
push edi
mov dword [0x818b60], eax
call esi
push eax
call fcn.00527980
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x818b64], eax
call esi
push eax
call fcn.00527980
pop ecx
mov dword [0x818b6c], eax
test eax, eax
je 0x53738a
push 0x569e48
push edi
call esi
push eax
call fcn.00527980
pop ecx
mov dword [0x818b68], eax
mov eax, dword [0x818b68]
cmp eax, ebx
je 0x5373e2
cmp dword [0x818b6c], ebx
je 0x5373e2
push eax
call fcn.005279fb
push dword [0x818b6c]
mov esi, eax
call fcn.005279fb
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5373e2
test edi, edi
je 0x5373e2
call esi
test eax, eax
je 0x5373d9
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5373d9
test byte [ebp - 0xc], 1
jne 0x5373e2
or dword [ebp + 0x10], 0x200000
jmp 0x53741b
mov eax, dword [0x818b60]
cmp eax, ebx
je 0x53741b
push eax
call fcn.005279fb
pop ecx
test eax, eax
je 0x53741b
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x53741b
mov eax, dword [0x818b64]
cmp eax, ebx
je 0x53741b
push eax
call fcn.005279fb
pop ecx
test eax, eax
je 0x53741b
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x818b5c]
call fcn.005279fb
pop ecx
test eax, eax
je 0x53743b
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x53743d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x53ad40
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 4
push ebx
push esi
push edi
push ebp
mov esi, dword [esp + 0x18]
mov byte [esp + 0x13], 0
lea eax, [esi + 4]
mov edi, dword [esp + 0x1c]
mov dword [esi], eax
mov ax, word [edi + 4]
mov word [esi + 4], ax
mov ax, word [edi + 0xa]
mov word [esi + 6], ax
mov ax, word [edi + 0x14]
mov word [esi + 0x16], ax
mov ax, word [edi + 8]
mov word [esi + 8], ax
mov ax, word [edi + 6]
mov word [esi + 0xa], ax
lea eax, [esi + 0x24]
mov dword [esi + 0x10], eax
lea eax, [esi + 4]
push eax
call fcn.0053ac40
or al, al
jne 0x53aeca
test byte [edi + 0x1c], 4
je 0x53ada3
mov byte [esp + 0x13], 1
sub cx, cx
sub dx, dx
lea esp, [esp]
mov ebp, ecx
and ebp, 0xffff
lea eax, [ebp*8]
sub eax, ebp
shl eax, 2
lea eax, [eax + eax*4]
lea ebx, [esi + eax]
lea eax, [ebp*4]
mov word [ebx + 0x36], cx
lea eax, [eax + eax*8]
lea ebp, [edi + eax]
mov ax, word [ebp + 0xe]
mov word [ebx + 0x9c], ax
mov ax, word [ebp + 0x12]
mov word [ebx + 0x8e], ax
mov ax, word [ebp + 0x16]
mov word [ebx + 0x34], ax
mov ax, word [ebp + 0x18]
mov word [ebx + 0x32], ax
mov eax, dword [ebp + 0x1c]
mov dword [ebx + 0x2c], eax
cmp cx, 3
mov eax, dword [ebp + 0x20]
mov dword [ebx + 0x24], eax
mov eax, dword [ebp + 0x24]
mov dword [ebx + 0x28], eax
lea eax, [esi + 4]
mov dword [ebx + 0xa4], eax
jne 0x53ae30
mov dword [ebx + 0xa8], 0
jmp 0x53ae3c
lea eax, [ebx + 0xb0]
mov dword [ebx + 0xa8], eax
or cx, cx
jne 0x53ae50
mov dword [ebx + 0xac], 0
jmp 0x53ae59
lea eax, [ebx - 0x68]
mov dword [ebx + 0xac], eax
cmp byte [esp + 0x13], 0
je 0x53ae70
cmp word [ebp + 0xe], 0xffff
jne 0x53ae70
or dword [ebx + 0x2c], 8
jmp 0x53ae76
mov word [ebx + 0x36], dx
inc dx
inc cx
cmp cx, 4
jb 0x53adb0
push esi
call fcn.0053acb0
push esi
call fcn.0053abf0
push esi
call fcn.0053abb0
mov eax, dword [esi + 0x10]
push eax
call fcn.0053c070
mov word [esi + 0xc], ax
or ax, ax
je 0x53aec0
lea eax, [esi + 4]
push eax
call fcn.0053bec0
sub ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8
push esi
call fcn.0053ab80
mov ax, 9
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 8

Function at 0x53cfc0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push esi
push edi
lea eax, [esp + 0xa]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
push eax
push esi
call fcn.0053aee0
mov eax, dword [esp + 0xc]
push 0xd
mov ax, word [eax + 4]
push eax
call fcn.0053caf0
or al, al
jne 0x53d04a
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.0053d8e0
or al, al
jne 0x53d04a
mov eax, dword [esp + 0xc]
mov ax, word [eax + 0xa]
push eax
mov eax, dword [esp + 0x10]
mov al, byte [eax + 8]
push eax
mov eax, dword [esp + 0x14]
mov ax, word [eax + 6]
push eax
mov eax, dword [esp + 0x18]
mov ax, word [eax + 4]
push eax
mov eax, dword [esp + 0x20]
push eax
push esi
call fcn.0053d7a0
mov di, ax
mov eax, dword [esp + 0x10]
push eax
push esi
call fcn.0053d930
or di, di
je 0x53d04a
mov ax, di
pop edi
pop esi
add esp, 0xc
ret 8
Function at 0x53d0f0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
lea eax, [esp + 0xe]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
mov edi, dword [esp + 0x28]
push eax
mov esi, dword [esp + 0x28]
push edi
push esi
call fcn.0053aee0
lea eax, [esp + 0xe]
push eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
push edi
push esi
call fcn.0053aee0
mov eax, dword [esp + 0x10]
push 0xe
mov ax, word [eax + 4]
push eax
call fcn.0053caf0
or al, al
jne 0x53d1d3
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.0053d8e0
mov bx, ax
or bl, bl
jne 0x53d1a2
mov eax, dword [esp + 0x10]
mov ax, word [eax + 0xe]
push eax
mov eax, dword [esp + 0x14]
mov ax, word [eax + 0xc]
push eax
mov eax, dword [esp + 0x18]
mov ax, word [eax + 0xa]
push eax
mov eax, dword [esp + 0x1c]
mov al, byte [eax + 8]
push eax
mov eax, dword [esp + 0x20]
mov ax, word [eax + 6]
push eax
mov eax, dword [esp + 0x24]
mov ax, word [eax + 4]
push eax
mov eax, dword [esp + 0x2c]
push eax
push esi
call fcn.0053d7f0
mov bx, ax
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.0053d930
push esi
call fcn.0053aff0
cmp ax, 0xd
jne 0x53d1b2
mov bx, 0xd
cmp bl, 0xd
je 0x53d1bd
cmp bx, 3
jne 0x53d1d0
mov ax, word [esp + 0xe]
dec word [esp + 0xe]
or ax, ax
jne 0x53d142
mov ax, bx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8

Function at 0x53ee30
Capabilities:
Check if file exists

Disassembly:
sub esp, 0xc
push esi
mov byte [esp + 4], 0x52
mov byte [esp + 5], 0x4e
mov byte [esp + 6], 0x42
mov byte [esp + 7], 0x4f
mov byte [esp + 8], 0x44
mov byte [esp + 9], 0x52
mov byte [esp + 0xa], 0x56
mov ax, word [esp + 0x18]
add al, 0x30
mov byte [esp + 0xb], al
mov esi, dword [esp + 0x14]
mov byte [esp + 0xc], 0
mov dword [esi], 0
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x53eec6
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x53eea3
cmp eax, 3
jbe 0x53eebb
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x53eeb0
push eax
call sub.KERNEL32.dll_CloseHandle
mov ax, 0x80b
pop esi
add esp, 0xc
ret 8
mov ax, 0x80c
pop esi
add esp, 0xc
ret 8
mov ax, 0x800
pop esi
add esp, 0xc
ret 8

Function at 0x53eee0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 4
push ebx
push esi
push edi
mov esi, dword [esp + 0x18]
push esi
mov word [esi + 6], 0xffff
call fcn.0053edd0
lea eax, [esp + 0xc]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
mov edi, dword [esp + 0x20]
push esi
mov eax, dword [edi]
push eax
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
or ebx, ebx
je 0x53ef30
lea eax, [esp + 0xc]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
push esi
mov eax, dword [edi]
push eax
call sub.KERNEL32.dll_ReadFile
mov ebx, eax
push esi
call fcn.0053ed90
or ebx, ebx
je 0x53ef42
cmp word [esi + 6], 0xffff
jne 0x53ef48
mov word [esi + 6], 0x83b
mov ax, word [esi + 6]
pop edi
pop esi
pop ebx
add esp, 4
ret 8
Function at 0x53f070
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x10
push esi
mov al, byte [esp + 0x1c]
push eax
lea eax, [esp + 8]
push eax
call fcn.0053f030
push 0
push 0x80
push 3
push 0
push 3
lea eax, [esp + 0x18]
push 0xc0000000
push eax
call sub.KERNEL32.dll_CreateFileA
mov esi, dword [esp + 0x18]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x53f0e0
call sub.KERNEL32.dll_GetLastError
cmp eax, 2
jb 0x53f0b9
cmp eax, 3
jbe 0x53f0d1
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x53f0c6
push eax
call sub.KERNEL32.dll_CloseHandle
mov ax, 0x20b
pop esi
add esp, 0x10
ret 8
mov ax, 0x20c
pop esi
add esp, 0x10
ret 8
mov ax, 0x200
pop esi
add esp, 0x10
ret 8

Function at 0x53f100
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
push esi
push edi
mov esi, dword [esp + 0x14]
push esi
mov word [esi + 6], 0xffff
call fcn.0053edd0
lea eax, [esp + 8]
push 0
push eax
xor eax, eax
mov ax, word [esi + 2]
push eax
mov eax, dword [esp + 0x1c]
push esi
mov eax, dword [eax]
push eax
call sub.KERNEL32.dll_ReadFile
mov edi, eax
push esi
call fcn.0053ed90
cmp edi, 1
jne 0x53f145
cmp word [esi + 6], 0xffff
jne 0x53f14b
mov word [esi + 6], 0x23b
mov ax, word [esi + 6]
pop edi
pop esi
add esp, 4
ret 8

Function at 0x53f230
Capabilities:
Contain obfuscated stackstrings
Read .ini file

Disassembly:
sub esp, 0x24
mov byte [esp + 8], 0x53
mov byte [esp + 9], 0x59
mov byte [esp + 0xa], 0x53
mov byte [esp + 0xb], 0x54
mov byte [esp + 0xc], 0x45
mov byte [esp + 0xd], 0x4d
mov byte [esp + 0xe], 0x2e
mov byte [esp + 0xf], 0x49
mov byte [esp + 0x10], 0x4e
mov byte [esp + 0x11], 0x49
mov byte [esp + 0x12], 0
mov byte [esp + 0x14], 0x53
mov byte [esp + 0x15], 0x65
mov byte [esp + 0x16], 0x6e
mov byte [esp + 0x17], 0x74
mov byte [esp + 0x18], 0x69
mov byte [esp + 0x19], 0x6e
mov byte [esp + 0x1a], 0x65
mov byte [esp + 0x1b], 0x6c
mov byte [esp + 0x1c], 0x53
mov byte [esp + 0x1d], 0x65
mov byte [esp + 0x1e], 0x74
mov byte [esp + 0x1f], 0x75
mov byte [esp + 0x20], 0x70
mov byte [esp + 0x21], 0
mov byte [esp], 0x49
mov byte [esp + 1], 0x6f
lea eax, [esp + 8]
mov byte [esp + 2], 0x45
mov byte [esp + 3], 0x6e
mov byte [esp + 4], 0x74
mov byte [esp + 5], 0x72
mov byte [esp + 6], 0x79
mov byte [esp + 7], 0
push eax
lea eax, [esp + 4]
push 0
push eax
lea eax, [esp + 0x20]
push eax
call sub.KERNEL32.dll_GetPrivateProfileIntA
add esp, 0x24
ret

Function at 0x5400f0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov eax, dword [esp + 8]
or eax, eax
jne 0x540101
mov ax, 2
pop esi
ret 0x14
push eax
call fcn.00539d30
mov esi, eax
cmp word [esi], 0x7242
je 0x540118
mov ax, 2
pop esi
ret 0x14
test byte [esi + 0x12], 4
jne 0x540130
mov word [esi + 6], 0xb39
mov ax, 0x39
pop esi
ret 0x14
mov word [esi + 0x30], 0xd
mov ax, word [esp + 0x10]
mov word [esi + 0x34], ax
mov ax, word [esp + 0x14]
mov word [esi + 0x36], ax
mov ax, word [esp + 0xc]
mov word [esi + 0x3a], ax
mov al, byte [esp + 0x18]
mov byte [esi + 0x38], al
push esi
call fcn.0053e8a0
mov ax, word [esi + 6]
push eax
call fcn.0053f5b0
cmp ax, 0xc
jne 0x540176
mov ax, 3
pop esi
ret 0x14
mov ax, word [esi + 6]
push eax
call fcn.0053f5b0
pop esi
ret 0x14
Function at 0x540890
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x5408a1
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi + 4]
test eax, eax
jne 0x5408ee
call fcn.0051e502
mov dword [eax], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x44]
push eax
push 0x4000
push 1
push ecx
call fcn.0051f1c4
add esp, 0x10
mov dword [esi + 4], eax
test eax, eax
jne 0x5408e9
mov edx, dword [esi + 0x40]
mov dword [esi + 0x3c], 1
or eax, 0xffffffff
test byte [edx + 0xc], 0x20
je 0x540900
mov dword [esi + 0x38], eax
pop esi
ret
mov eax, dword [esi + 0x44]
mov dword [esi], eax
mov eax, dword [esi + 4]
xor ecx, ecx
dec eax
mov dword [esi + 4], eax
mov eax, dword [esi]
mov cl, byte [eax]
inc eax
mov dword [esi], eax
mov eax, ecx
pop esi
ret
Function at 0x540c60
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x540cef
cmp byte [esi + 0x5c], 0x77
jne 0x540cef
push ebp
mov ebp, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
test edi, edi
mov dword [esi], ebp
mov dword [esi + 4], edi
je 0x540cd3
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x540cb1
mov ecx, dword [esi + 0x40]
mov eax, dword [esi + 0x48]
push ecx
push 0x4000
push 1
push eax
mov dword [esi + 0xc], eax
call fcn.0051eea2
add esp, 0x10
cmp eax, 0x4000
jne 0x540ccc
mov dword [esi + 0x10], eax
push 0
push esi
call fcn.00541a50
add esp, 8
mov dword [esi + 0x38], eax
test eax, eax
jne 0x540cd3
mov eax, dword [esi + 4]
test eax, eax
jne 0x540c86
jmp 0x540cd3
mov dword [esi + 0x38], 0xffffffff
mov edx, dword [esi + 0x4c]
push edi
push ebp
push edx
call fcn.00542ae0
mov ecx, dword [esi + 4]
add esp, 0xc
mov dword [esi + 0x4c], eax
mov eax, edi
pop edi
pop ebp
sub eax, ecx
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret

Function at 0x540d70
Capabilities:
Write file on windows

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0xc]
xor ebx, ebx
test esi, esi
push edi
je 0x540e1d
cmp byte [esi + 0x5c], 0x77
jne 0x540e1d
mov dword [esi + 4], ebx
mov eax, dword [esi + 0x10]
mov edi, 0x4000
sub edi, eax
je 0x540dbe
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x48]
push eax
push edi
push 1
push ecx
call fcn.0051eea2
add esp, 0x10
cmp eax, edi
jne 0x540e03
mov edx, dword [esi + 0x48]
mov dword [esi + 0x10], 0x4000
mov dword [esi + 0xc], edx
test ebx, ebx
jne 0x540e0d
mov eax, dword [esp + 0x14]
push eax
push esi
call fcn.00541a50
add esp, 8
mov dword [esi + 0x38], eax
test edi, edi
jne 0x540ddf
cmp eax, 0xfffffffb
jne 0x540ddf
mov dword [esi + 0x38], edi
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x540df0
cmp dword [esi + 0x38], 1
je 0x540df0
xor ebx, ebx
jmp 0x540df5
mov ebx, 1
mov eax, dword [esi + 0x38]
test eax, eax
je 0x540d8e
cmp eax, 1
jne 0x540e0d
jmp 0x540d8e
or eax, 0xffffffff
pop edi
mov dword [esi + 0x38], eax
pop esi
pop ebx
ret
mov esi, dword [esi + 0x38]
pop edi
mov eax, esi
dec eax
neg eax
sbb eax, eax
and eax, esi
pop esi
pop ebx
ret
pop edi
pop esi
mov eax, 0xfffffffe
pop ebx
ret
Function at 0x542ae0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x542aeb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x542bee
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x569f98]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x569f98]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x569f98]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x569f98]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x569f98]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x569f98]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x569f98]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x569f98]
xor eax, edx
inc ecx
dec edi
jne 0x542b06
pop edi
test esi, esi
je 0x542c10
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x569f98]
xor eax, edx
inc ecx
dec esi
jne 0x542bf2
pop esi
pop ebx
not eax
ret
Function at 0x4017d4
Capabilities:
Decode data using base64 via dword translation table
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x184
mov esi, edx
call fcn.004017e5
Function at 0x40b530
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, edx
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
xor esi, esi
lea edx, [eax + edx*2]
movzx ebx, byte [eax + 1]
cmp byte [eax], ch
lea eax, [eax + 2]
lea edi, [esi + ebx]
jne 0x40b580
cmp esi, edi
ja 0x40b5e8
cmp edi, dword [esp + 0x1c]
ja 0x40b5f6
add esi, dword [esp + 0x18]
nop word [eax + eax]
test ebx, ebx
je 0x40b582
dec ebx
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x40b570
jmp 0x40b5df
ja 0x40b588
cmp eax, edx
mov esi, edi
jne 0x40b543
mov edi, dword [esp + 0x24]
movzx ecx, cx
mov al, 1
add edi, ebp
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebp]
lea esi, [ebp + 1]
test dl, dl
js 0x40b5c0
mov ebp, esi
sub ecx, edx
jns 0x40b5d7
jmp 0x40b5e1
cmp esi, edi
je 0x40b606
movzx esi, byte [ebp + 1]
and edx, 0x7f
add ebp, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x40b5e1
xor al, 1
cmp ebp, edi
jne 0x40b5a0
jmp 0x40b5e1
xor eax, eax
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x444ea4
call fcn.00441830
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0x444ea4
call fcn.00441590
mov ecx, 0x444e94
call fcn.00441910
Function at 0x417410
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x422800
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x456a5c]
test al, al
je 0x4175e1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41745c
cmp eax, 3
jne 0x4175da
mov ebx, dword [0x456a60]
test ebx, ebx
je 0x4175da
mov dword [ebp - 0x20], 0
jmp 0x417487
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4174b8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41762b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x417480
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x417480
test byte [ebp - 0x20], 1
je 0x4175da
mov ebx, dword [0x456a60]
test ebx, ebx
je 0x4175da
mov dword [ebp - 0x20], 0
jmp 0x4174e7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x417518
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41762b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4174e0
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x4174e0
test byte [ebp - 0x20], 1
je 0x4175da
mov ebx, dword [0x456a60]
test ebx, ebx
je 0x4175da
mov dword [ebp - 0x20], 0
jmp 0x417547
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x417578
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41762b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x417540
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x417540
test byte [ebp - 0x20], 1
je 0x4175da
mov ebx, dword [0x456a60]
test ebx, ebx
je 0x4175da
mov dword [ebp - 0x20], 0
jmp 0x4175a7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4175d4
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41762b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4175a0
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x4175a0
test byte [ebp - 0x20], 1
jne 0x4175f4
movzx eax, byte [0x452f00]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebx, dword [0x456a60]
jmp 0x4175ff
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x4175da
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x41762b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4175fc
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x4175fc
mov ecx, 0x447c54
mov dword [ebp - 0x10], 0
call fcn.00441910
ud2