joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10035310
Capabilities:
Get graphical window text
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
mov eax, dword [0x10082d0c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
call fcn.1001a050
mov ebx, eax
test ebx, ebx
je 0x1003547c
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, eax
test edi, edi
je 0x1003535c
push 4
push edi
call dword [sym.imp.USER32.dll_GetWindow]
test eax, eax
jne 0x10035358
push edi
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x1003535c
mov edi, eax
jmp 0x10035340
push 0x100
lea eax, [ebp - 0x184]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x10035474
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x10035474
lea eax, [ebp - 0x184]
push eax
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, edi
jne 0x10035474
test edi, edi
je 0x10035474
push esi
push 0xfffffffffffffffc
push edi
call dword [sym.imp.USER32.dll_GetWindowLongA]
push 0
push edi
mov esi, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 0
push ebx
mov edi, eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test esi, esi
mov dword [ebp - 0x188], eax
pop esi
je 0x10035474
cmp eax, edi
je 0x10035474
push 1
push edi
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
je 0x10035421
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push edi
push dword [ebp - 0x188]
call dword [sym.imp.USER32.dll_AttachThreadInput]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100544a0
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2000
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 2
lea eax, [ebp - 0x188]
mov dword [ebp - 0x188], 0
push eax
push 0
push 0x2001
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 2
lea eax, [ebp - 0x18c]
push eax
push 0
push 0x2001
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100544a0
mov esp, ebp
pop ebp
ret
Function at 0x100354a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov esi, eax
test esi, esi
jne 0x100354cb
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
push dword [ebp - 0xc]
push esi
call fcn.1001a050
add esp, 8
mov dword [ebp - 8], eax
test eax, eax
je 0x100354f4
push eax
call dword [sym.imp.USER32.dll_IsWindowEnabled]
mov edx, dword [ebp - 8]
test eax, eax
cmove edx, esi
mov dword [ebp - 8], edx
test edx, edx
jne 0x1003550a
lea eax, [ebp - 0xc]
push eax
push 0x10035590
call dword [sym.imp.USER32.dll_EnumWindows]
mov edx, dword [ebp - 8]
test edx, edx
je 0x10035551
mov eax, dword fs:[0x2c]
mov ecx, dword [0x10083c98]
mov dword [ebp - 4], edx
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x10083c10]
cmp eax, dword [ecx + 4]
jg 0x10035558
jmp 0x1003552e
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push 0
push dword [0x10083c0c]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebp - 8]
test eax, eax
pop esi
cmovne ecx, dword [ebp - 4]
mov eax, ecx
mov esp, ebp
pop ebp
ret
mov eax, edx
pop esi
mov esp, ebp
pop ebp
ret
push 0x10083c10
call fcn.1001a050
add esp, 4
cmp dword [0x10083c10], 0xffffffff
jne 0x1003552b
push str.adobe.sccore.get.dialog.owner
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push 0x10083c10
mov dword [0x10083c0c], eax
call fcn.1001a050
add esp, 4
jmp 0x1003552b

Function at 0x100356d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005ac13
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10082d0c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [esi], vtable.ScCore::Thread.0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 1
call fcn.1001a050
mov edi, eax
mov ebx, edx
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push sym.ScCore.dll_private:_static_unsigned_int___stdcall_ScCore::Thread::go_void__
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x10035768
mov dword [esi + 0xc], 0x20
mov eax, esi
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
mov eax, dword [0x10083ae8]
test eax, eax
jne 0x1003577c
call sym.ScCore.dll_public:_static_class_ScCore::Context____cdecl_ScCore::Context::get_void_
mov dword [eax + 0x58], edi
mov dword [eax + 0x5c], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10035810
Capabilities:
Resume thread

Disassembly:
cmp dword [ecx + 0xc], 0
jne 0x1003581f
push dword [ecx + 4]
call dword [sym.imp.kernel32.dll_ResumeThread]
ret
Function at 0x10035b60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x10083c3c]
test eax, eax
jne 0x10035bc9
push dword [0x100829d0]
call dword [sym.imp.kernel32.dll_TlsGetValue]
test eax, eax
jne 0x10035bc9
push esi
push 0x178
call fcn.1001a050
add esp, 4
test eax, eax
je 0x10035b96
mov ecx, eax
call fcn.1001a050
mov esi, eax
jmp 0x10035b98
xor esi, esi
cmp byte [0x10083c38], 0
jne 0x10035bb2
mov ecx, esi
mov dword [0x10083c3c], esi
call fcn.1001d6f0
mov eax, esi
pop esi
ret
push esi
push dword [0x100829d0]
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, esi
call fcn.1001d6f0
mov eax, esi
pop esi
ret

Function at 0x10035bd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov eax, dword [0x100829d0]
cmp eax, 0xffffffff
je 0x10035c26
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10035c17
mov ecx, dword [0x10083c3c]
xor eax, eax
cmp esi, ecx
cmove ecx, eax
mov dword [0x10083c3c], ecx
mov ecx, esi
call fcn.1001d720
mov ecx, esi
call fcn.1001d6c0
push 0x178
push esi
call fcn.1001a050
add esp, 8
push 0
push dword [0x100829d0]
call dword [sym.imp.kernel32.dll_TlsSetValue]
pop esi
ret
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 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 0x432002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x78f05a3d
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
je 0x4320d2
nop
nop
nop
nop
nop
mov ebx, 0x42f314
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x4d74421e
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4056f0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x420d50]
test eax, eax
jle 0x405794
sub esp, 0x1c
mov eax, dword [0x420830]
mov dword [esp + 4], str._s:_info:
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], 0x20
add eax, 0x40
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x41b8ed
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fflush
add esp, 0x1c
repz ret

Function at 0x4057a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1c
mov eax, dword [0x420830]
mov dword [esp + 4], str._s:_error:
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp], 0x20
add eax, 0x40
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputc
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x41b8ed
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], 1
call sub.msvcrt.dll_exit

Function at 0x40bb40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0xf], 0xde
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.0040b7c4
push eax
push esi
push dword [ebp + 8]
call fcn.0040b779
mov dword [ebp - 8], eax
lea eax, [ebp - 0x6c]
push eax
mov byte [ebp - 0x6c], bl
mov byte [ebp - 0x6b], bl
mov byte [ebp - 0x6a], 0xbe
mov byte [ebp - 0x69], bl
mov byte [ebp - 0x68], 0x17
mov byte [ebp - 0x67], 0x28
mov byte [ebp - 0x66], 0x33
inc ebp
lcall 0xc635, 0x9b45c633
inc ebp
pushfd
xor al, 0xc6
inc ebp
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6
mov byte [ebp - 0x60], 0x33
mov byte [ebp - 0x5f], 0x2e
mov byte [ebp - 0x5e], 0x35
mov byte [ebp - 0x5d], 0x24
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.0040b7c4
push eax
push esi
invalid
invalid

Function at 0x40bb88
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc ebp
lcall 0xc635, 0x9b45c633
inc ebp
pushfd
xor al, 0xc6
inc ebp
popfd
and dh, al
inc ebp
sahf
sub eax, 0x119f45c6
Function at 0x40f0d1
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
mov edx, dword [eax]
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x24], edx
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x20], edx
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x14], 0
cmp dword [ebp + 0x18], 0
jne 0x40f10e
mov dword [esp], str.POSIXLY_CORRECT
call sub.msvcrt.dll_getenv
test eax, eax
je 0x40f115
mov edx, 1
jmp 0x40f11a
mov edx, 0
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
cmp al, 0x2d
jne 0x40f13a
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x18], 2
add dword [ebp + 0x10], 1
jmp 0x40f174
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax]
cmp al, 0x2b
jne 0x40f154
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x18], 0
add dword [ebp + 0x10], 1
jmp 0x40f174
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x1c]
test eax, eax
je 0x40f16a
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x18], 0
jmp 0x40f174
mov eax, dword [ebp + 0x14]
mov dword [eax + 0x18], 1
mov eax, dword [ebp + 0x10]
leave
ret

Function at 0x410154
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x41017e
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004114c8
jmp 0x410247
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
jmp 0x4101a7
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test al, al
je 0x41019b
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, byte [ebp - 0x11]
jne 0x4101a3
mov eax, dword [ebp - 0xc]
jmp 0x410247
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
and eax, 3
test eax, eax
jne 0x410186
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 0x1010101
movzx eax, byte [ebp - 0x11]
movzx edx, byte [ebp - 0x11]
shl edx, 8
or eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
shl eax, 0x10
or dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
xor eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x20]
not edx
and eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
not edx
and eax, edx
or ecx, eax
mov edx, ecx
mov eax, dword [ebp - 0x18]
shl eax, 7
and eax, edx
test eax, eax
jne 0x41021c
add dword [ebp - 0x10], 4
jmp 0x4101d7
nop
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
jmp 0x41022f
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test al, al
je 0x410244
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
cmp al, byte [ebp - 0x11]
jne 0x41022b
mov eax, dword [ebp - 0xc]
leave
ret
Function at 0x4103cf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00410541
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x1c]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
cmp edx, eax
jbe 0x410427
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
sub ecx, eax
mov eax, ecx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call fcn.00417f48
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00417f48
nop
leave
ret
Function at 0x410bd3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
sub edx, eax
mov eax, edx
cmp eax, dword [ebp + 0xc]
jae 0x410d63
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00410541
mov eax, dword [ebp + 8]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
sub ecx, eax
mov eax, ecx
mov ecx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
sub edx, eax
mov eax, edx
cmp eax, dword [ebp - 0xc]
jne 0x410c83
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
sub edx, eax
mov eax, edx
cmp eax, dword [ebp + 0xc]
jae 0x410d63
jmp 0x410ce6
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov edx, dword [ebp - 0xc]
neg edx
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x10]
mov eax, dword [ebp - 0xc]
sub edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], edx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x1c]
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
sub edx, eax
mov eax, edx
mov ecx, eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp - 0xc]
add edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memmove
mov eax, 0
jmp 0x410d68
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x20]
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
sub edx, eax
mov eax, edx
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0xc]
add eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jb 0x410d2c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 0x14]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040bbc4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x410d40
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov dword [eax], 0xc
mov eax, 0
jmp 0x410d68
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
mov dword [eax + 0x18], edx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
add edx, eax
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], edx
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], edx
mov eax, 1
leave
ret
Function at 0x4113fc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov byte [ebp - 9], al
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
jmp 0x41142b
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
cmp al, byte [ebp - 9]
jne 0x411423
mov eax, dword [ebp - 4]
jmp 0x4114c3
sub dword [ebp + 0x10], 1
add dword [ebp - 4], 1
cmp dword [ebp + 0x10], 0
je 0x41143b
mov eax, dword [ebp - 4]
and eax, 3
test eax, eax
jne 0x411410
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0x1010101
movzx eax, byte [ebp - 9]
movzx edx, byte [ebp - 9]
shl edx, 8
or eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
shl eax, 0x10
or dword [ebp - 0x14], eax
jmp 0x41148f
mov eax, dword [ebp - 8]
mov eax, dword [eax]
xor eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
not edx
and edx, eax
mov eax, dword [ebp - 0x10]
shl eax, 7
and eax, edx
test eax, eax
jne 0x411497
add dword [ebp - 8], 4
sub dword [ebp + 0x10], 4
cmp dword [ebp + 0x10], 3
ja 0x411463
jmp 0x411498
nop
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x4114b8
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
cmp al, byte [ebp - 9]
jne 0x4114b0
mov eax, dword [ebp - 4]
jmp 0x4114c3
sub dword [ebp + 0x10], 1
add dword [ebp - 4], 1
cmp dword [ebp + 0x10], 0
jne 0x4114a0
mov eax, 0
leave
ret

Function at 0x4114c8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov byte [ebp - 9], al
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
jmp 0x4114f0
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
cmp al, byte [ebp - 9]
jne 0x4114ec
mov eax, dword [ebp - 4]
jmp 0x41156b
add dword [ebp - 4], 1
mov eax, dword [ebp - 4]
and eax, 3
test eax, eax
jne 0x4114dc
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0x1010101
movzx eax, byte [ebp - 9]
movzx edx, byte [ebp - 9]
shl edx, 8
or eax, edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
shl eax, 0x10
or dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
xor eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
not edx
and edx, eax
mov eax, dword [ebp - 0x10]
shl eax, 7
and eax, edx
test eax, eax
jne 0x41154a
add dword [ebp - 8], 4
jmp 0x411520
nop
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x41155d
add dword [ebp - 4], 1
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
cmp al, byte [ebp - 9]
jne 0x411559
mov eax, dword [ebp - 4]
leave
ret
Function at 0x4160e0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.00416140

Function at 0x416140
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x420d00]
test esi, esi
jle 0x41622d
mov edi, dword [0x420d04]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x416174
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x416226
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x416160
mov dword [esp], eax
mov esi, eax
call fcn.00416a90
test eax, eax
mov edi, eax
je 0x41626a
mov esi, dword [0x420d04]
lea ebx, [ebx + ebx*2]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.00416ba0
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x420d04]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x41624a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x41621f
sub eax, 0x40
and eax, 0xffffffbf
je 0x41621f
mov eax, dword [esp + 0x20]
add ebx, dword [0x420d04]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x416234
add dword [0x420d00], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor ebx, ebx
jmp 0x41617e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004160e0
mov eax, dword [0x420d04]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004160e0
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004160e0
lea esi, [esi]
Function at 0x416700
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x420d18
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x420d10]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x416755
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x41674e
test esi, esi
je 0x41674e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x416730
mov dword [esp], 0x420d18
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret