joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4089c0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x553ddb
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5ad880]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call fcn.004325ad
test eax, eax
jne 0x408a1f
push 0x585c58
call fcn.0052456c
add esp, 4
mov esi, 1
jmp 0x408b67
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.005296a0
lea ecx, [ebp - 0x23c]
add esp, 0xc
mov dword [0x5b73fc], ecx
mov dword [ebp - method.CService.virtual_0], 0x585cac
cmp dword [ebp + 8], 2
mov dword [ebp - 4], 0
jne 0x408b4b
mov edx, dword [ebp + 0xc]
mov esi, dword [edx + 4]
mov ecx, 0x585c90
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408a96
test dx, dx
je 0x408a92
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408a96
add eax, 4
add ecx, 4
test dx, dx
jne 0x408a70
xor eax, eax
jmp 0x408a9b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408ab3
call fcn.0041c4f0
call fcn.0041c5e0
mov eax, 1
jmp 0x408b69
mov ecx, 0x585c98
mov eax, esi
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408ae6
test dx, dx
je 0x408ae2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408ae6
add eax, 4
add ecx, 4
test dx, dx
jne 0x408ac0
xor eax, eax
jmp 0x408aeb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408b05
call fcn.0041c670
push str.FILESUN_LAUNCHER
call fcn.0041c710
mov eax, 1
jmp 0x408b69
mov ecx, 0x585ca0
mov eax, esi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x408b36
test dx, dx
je 0x408b32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x408b36
add eax, 4
add ecx, 4
test dx, dx
jne 0x408b10
xor eax, eax
jmp 0x408b3b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x408b44
call fcn.0041c5e0
mov eax, 1
jmp 0x408b69
lea ecx, [ebp - 0x23c]
call fcn.0041c790
mov eax, dword [ebp - 0x23c]
mov edx, dword [eax + 8]
lea ecx, [ebp - 0x23c]
call edx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005232d4
mov esp, ebp
pop ebp
ret
Function at 0x409160
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x5ad880]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x10], ebx
test ebx, ebx
je 0x409195
mov eax, dword [esp + 0x10]
add eax, 0x504b
cmp eax, 0x10000
jg 0x409230
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
xor eax, eax
mov ecx, 2
mov dword [esp + 0x14], eax
push str.127.0.0.1
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov word [esp + 0x18], cx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x18], eax
test ebx, ebx
jne 0x4091df
push 0x504b
call dword [sym.imp.WS2_32.dll_htons]
jmp 0x4091f8
mov edi, dword [esp + 0x10]
lea edx, [edi + 0x504b]
movzx eax, dx
push eax
call dword [sym.imp.WS2_32.dll_htons]
inc edi
mov dword [esp + 0x10], edi
mov word [esp + 0x16], ax
push 0x10
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
test edi, edi
js 0x409244
test ebx, ebx
jne 0x409181
mov ebx, 1
jmp 0x40917d
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.005232d4
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x16]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
movzx eax, ax
call fcn.005232d4
mov esp, ebp
pop ebp
ret

Function at 0x409460
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x1084]
mov dword [ebp - 4], 0
mov ebx, 1
lea ecx, [ecx]
push 0x50
call fcn.0042a9f0
xor edx, edx
add esp, 4
cmp eax, edx
je 0x409537
mov dword [eax], edx
cmp dword [esi + 8], edx
je 0x4094af
mov dword [eax + 0x14], edx
mov ecx, dword [esi + 8]
mov ecx, dword [ecx + 0x74]
or ecx, 0x20002
mov dword [eax + 0x14], ecx
jmp 0x4094b6
mov dword [eax + 0x14], 0x20102
push edx
push eax
lea ecx, [eax + 0x1c]
mov dword [eax + 0x20], edi
mov dword [eax + 0x18], esi
mov dword [ecx], 0x1000
mov dword [ebp - 0xc], edx
lea edx, [ebp - 8]
push edx
add eax, 0x24
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [esi + 0x10]
lea edx, [ebp - 0x10]
push edx
push ebx
push ecx
push eax
mov dword [ebp - 8], 0x10
call dword [sym.imp.WS2_32.dll_WSARecvFrom]
cmp eax, 0xffffffff
jne 0x409506
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x409506
cmp eax, 0x2736
jne 0x40953c
mov eax, dword [esi + 4]
add dword [esi + 0x78], ebx
mov dword [esi + 0x74], ebx
add dword [eax + 0xc4], ebx
mov eax, dword [ebp - 4]
add eax, ebx
add edi, 0x1000
mov dword [ebp - 4], eax
cmp eax, 4
jb 0x409480
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 4], edx
jmp 0x409540
cmp dword [esi + 4], 0
je 0x409549
mov eax, esi
call fcn.0042ecf0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ab40
Capabilities:
Get thread local storage value

Disassembly:
mov eax, dword [0x5b78f4]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40ab75
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x40ab75
mov eax, dword [ecx]
test eax, eax
je 0x40ab75
mov dword [ecx], 0
mov cl, byte [eax]
movzx edx, cl
cmp edx, ebx
jae 0x40ab92
push eax
call fcn.004302fd
add esp, 4
lea eax, [ebx + 1]
push eax
call fcn.004302c3
add esp, 4
cmp ebx, 0xff
ja 0x40ab90
movzx ecx, bl
mov byte [eax + ebx], cl
ret
xor ecx, ecx
mov byte [eax + ebx], cl
ret

Function at 0x40ad50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push 0
push 0
push 1
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, eax
mov dword [esi + 4], edi
test edi, edi
jne 0x40ada7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
mov edx, dword [eax]
push 1
mov ecx, esi
call edx
mov dword [esp + 0x10], ebx
call fcn.005438e0
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x40ada7
lea eax, [esp + 0x10]
push eax
mov ecx, str.thread.entry_event
call fcn.00401360
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [ebp + 8]
mov dword [ebx + 8], eax
mov dword [esi + 8], eax
cmp dword [ebx + 8], 0
jne 0x40adf9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov ebx, eax
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov dword [esp + 0x10], ebx
call fcn.005438e0
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x40adf6
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.thread.exit_event
call fcn.00401360
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
lea edx, [esp + 0xc]
push edx
push 0
push esi
push 0x40aea0
push eax
push 0
mov dword [esp + 0x24], 0
call fcn.005246d8
add esp, 0x18
mov dword [ebx + 4], eax
test eax, eax
jne 0x40ae74
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
mov dword [esp + 0x10], eax
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
test edi, edi
je 0x40ae42
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40ae50
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x10], esi
call fcn.005438e0
mov dword [esp + 0x14], eax
test esi, esi
je 0x40ae74
lea ecx, [esp + 0x10]
push ecx
mov ecx, str.thread
call fcn.00401360
test edi, edi
je 0x40ae88
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x417dc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555fb8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x5ad880]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.00430f5d
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x417e09
push 0x80004005
call fcn.00408050
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1c], eax
lea esi, [ebp - 0x14]
mov dword [ebp - 4], ebx
call fcn.00419080
push str.Updater.exe
mov byte [ebp - 4], 1
mov ecx, dword [eax]
push str.FileSun.com
push ecx
lea edx, [ebp - 0x1c]
push str._s_s_s
push edx
call fcn.00407910
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 0x14
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417e67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
call fcn.00430f5d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x417e81
push 0x80004005
call fcn.00408050
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
mov eax, dword [edi + 0x7c]
push eax
lea ecx, [ebp - 0x14]
push str.__upload_list__d
push ecx
call fcn.00407910
add esp, 0xc
mov ecx, str.Updater.exe
call fcn.00420300
cmp eax, ebx
je 0x417eef
push eax
push ebx
push 0x1fffff
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea edx, [ebp - 0x18]
mov esi, eax
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x417eef
push 0x3e8
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x1c]
push esi
push edi
call fcn.00419140
lea eax, [esi - 0x10]
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417f1b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x417f3e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005232d4
mov esp, ebp
pop ebp
ret
Function at 0x419080
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5ad880]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
mov dword [ebp - 0x210], 0
call fcn.005296a0
add esp, 0xc
push 0
push 0x26
lea ecx, [ebp - 0x20c]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov ecx, 0x585740
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4190f7
test dx, dx
je 0x4190f3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4190f7
add eax, 4
add ecx, 4
test dx, dx
jne 0x4190d1
xor eax, eax
jmp 0x4190fc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x419119
push str.C:Program_Files
lea edx, [ebp - 0x20c]
push 0x104
push edx
call fcn.005249d8
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.00408190
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.005232d4
mov esp, ebp
pop ebp
ret
Function at 0x41c4f0
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5ad880]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x206
lea eax, [ebp - 0x20a]
push 0
push eax
call fcn.005296a0
add esp, 0xc
push 0x103
lea edx, [ebp - 0x20a]
push edx
mov ecx, 0x22
push 0
mov word [ebp - 0x20c], cx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41c544
mov eax, dword [0x5872f0]
push 0xf003f
push 0
push 0
mov dword [edi], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, eax
test esi, esi
je 0x41c5a4
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push str.FILESUN_LAUNCHER
push str.FILESUN_LAUNCHER
push esi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
test eax, eax
jne 0x41c5b6
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005232d4
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push eax
call edi
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.005232d4
mov esp, ebp
pop ebp
ret

Function at 0x41c670
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5ad880]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
push 0xf01ff
mov ebx, eax
push str.FILESUN_LAUNCHER
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x41c6c3
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005232d4
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
cmp dword [ebp - 0x1c], 1
mov edi, eax
je 0x41c6e6
lea ecx, [ebp - 0x20]
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005232d4
mov esp, ebp
pop ebp
ret
Function at 0x41c9e0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push 0xffffffffffffffff
push 0
lea edx, [ebp - 8]
push edx
push 2
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x5b77c4
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
test eax, eax
je 0x41ca2d
mov ecx, dword [esi + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 4]
push edx
push method.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.virtual_56
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
mov eax, dword [esi + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esp, ebp
pop ebp
ret

Function at 0x41ca80
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5552af
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5ad880]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
mov dword [ebp - 4], edi
mov dword [esi], vtable.boost::asio::detail::win_iocp_io_service.0
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
call fcn.0041d220
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
lea eax, [esi + 0x38]
mov byte [ebp - 4], 3
push eax
mov dword [esi + 0x34], edi
call fcn.0041c880
mov ebx, eax
call fcn.005438e0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], eax
cmp ebx, edi
je 0x41cb11
lea ecx, [ebp - 0x14]
push ecx
mov ecx, str.mutex
call fcn.00401360
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov eax, dword [ebp + 0x10]
mov byte [ebp - 4], 5
cmp eax, 0xffffffff
jb 0x41cb29
or eax, 0xffffffff
push eax
push edi
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
cmp eax, edi
jne 0x41cb60
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0x14], ebx
call fcn.005438e0
mov dword [ebp - 0x10], eax
cmp ebx, edi
je 0x41cb60
lea edx, [ebp - 0x14]
push edx
mov ecx, str.iocp
call fcn.00401360
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 0xc
Function at 0x41ce30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x555910
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x5ad880]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push ebx
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x41ce90
mov eax, esi
call fcn.0041cf30
xor esi, esi
call fcn.005438e0
mov dword [edi + 4], eax
mov dword [edi], esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov edx, dword [0x5b78f4]
lea ecx, [ebp - 0x10]
push edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [0x5b78f4]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edi
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0041cfa0
test eax, eax
je 0x41cee2
cmp ebx, 0xffffffff
je 0x41ced6
inc ebx
push edi
mov ecx, esi
call fcn.0041cfa0
test eax, eax
jne 0x41ced0
mov edx, dword [ebp - 0x14]
mov eax, dword [0x5b78f4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x41cf02
push eax
call fcn.004302fd
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41d350
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x554959
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5ad880]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0xf
mov dword [eax + 0x10], ecx
mov byte [eax], cl
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
cmp dword [edx + 0x14], 0x10
mov dword [ebp - 0x20], 1
jb 0x41d3a3
mov ecx, dword [edx]
jmp 0x41d3ad
mov ecx, edx
jmp 0x41d3ad
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [edx + 0x14]
cmp edi, 0x10
jb 0x41d3b9
mov esi, dword [edx]
jmp 0x41d3bb
mov esi, edx
mov eax, dword [edx + 0x10]
add esi, eax
cmp ecx, esi
je 0x41d494
cmp edi, 0x10
jb 0x41d3cf
mov edx, dword [edx]
sub eax, ecx
add eax, edx
mov dword [ebp - 0x1c], eax
cmp eax, 3
mov dword [ebp - 0x18], 3
lea eax, [ebp - 0x1c]
jl 0x41d3e8
lea eax, [ebp - 0x18]
mov esi, dword [eax]
xor edx, edx
lea edi, [esi + ecx]
mov dword [ebp - 0x18], esi
mov word [ebp - 0x10], dx
mov byte [ebp - 0xe], dl
cmp ecx, edi
je 0x41d412
mov eax, edi
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x10]
push ecx
call fcn.0052bff0
mov dl, byte [ebp - 0xe]
add esp, 0xc
mov al, byte [ebp - 0x10]
mov cl, al
shr cl, 2
mov byte [ebp - 0x14], cl
mov cl, byte [ebp - 0xf]
and al, 3
mov bl, cl
shl al, 4
shr bl, 4
or al, bl
and cl, 0xf
mov byte [ebp - 0x13], al
add cl, cl
mov al, dl
shr al, 6
add cl, cl
or cl, al
mov dword [ebp - 0x1c], edi
and dl, 0x3f
lea eax, [esi + 1]
xor edi, edi
mov byte [ebp - 0x12], cl
mov byte [ebp - 0x11], dl
test eax, eax
jle 0x41d471
movzx ecx, byte [ebp + edi - 0x14]
mov bl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov esi, dword [ebp + 8]
call fcn.00419450
mov eax, dword [ebp - 0x18]
inc edi
inc eax
cmp edi, eax
jl 0x41d452
mov esi, dword [ebp - 0x18]
mov eax, 3
sub eax, esi
test eax, eax
jle 0x41d3a7
mov edi, eax
mov esi, dword [ebp + 8]
mov bl, 0x3d
call fcn.00419450
dec edi
jne 0x41d482
jmp 0x41d3a7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41e370
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x5ad880]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
xor edi, edi
push 0x3fc
mov ebx, ecx
lea ecx, [ebp - 0x400]
push edi
push ecx
mov dword [ebp - 0x410], eax
mov dword [ebp - 0x404], edi
call fcn.005296a0
add esp, 0xc
xor eax, eax
mov dword [ebp + eax*4 - 0x404], eax
inc eax
cmp eax, 0x100
jl 0x41e3b0
mov esi, 2
lea ecx, [ebp - 0x400]
mov dword [ebp - 0x40c], 0x40
mov edx, dword [ecx - 4]
mov dword [ebp - 0x408], edx
xor edx, edx
lea eax, [esi - 2]
div dword [ebp + 8]
movzx eax, byte [edx + ebx]
add eax, dword [ebp - 0x408]
add edi, eax
and edi, 0x800000ff
jns 0x41e401
dec edi
or edi, 0xffffff00
inc edi
mov edx, dword [ebp + edi*4 - 0x404]
mov eax, dword [ebp - 0x408]
mov dword [ecx - 4], edx
mov dword [ebp + edi*4 - 0x404], eax
xor edx, edx
lea eax, [esi - 1]
div dword [ebp + 8]
mov eax, dword [ecx]
movzx edx, byte [edx + ebx]
add edx, eax
add edi, edx
and edi, 0x800000ff
jns 0x41e43a
dec edi
or edi, 0xffffff00
inc edi
mov edx, dword [ebp + edi*4 - 0x404]
mov dword [ecx], edx
mov dword [ebp + edi*4 - 0x404], eax
xor edx, edx
mov eax, esi
div dword [ebp + 8]
mov eax, dword [ecx + 4]
movzx edx, byte [edx + ebx]
add edx, eax
add edi, edx
and edi, 0x800000ff
jns 0x41e46c
dec edi
or edi, 0xffffff00
inc edi
mov edx, dword [ebp + edi*4 - 0x404]
mov dword [ecx + 4], edx
mov dword [ebp + edi*4 - 0x404], eax
xor edx, edx
lea eax, [esi + 1]
div dword [ebp + 8]
mov eax, dword [ecx + 8]
movzx edx, byte [edx + ebx]
add edx, eax
add edi, edx
and edi, 0x800000ff
jns 0x41e4a0
dec edi
or edi, 0xffffff00
inc edi
mov edx, dword [ebp + edi*4 - 0x404]
mov dword [ecx + 8], edx
add esi, 4
add ecx, 0x10
dec dword [ebp - 0x40c]
mov dword [ebp + edi*4 - 0x404], eax
jne 0x41e3d4
mov eax, dword [ebp + 0x14]
xor edx, edx
xor esi, esi
test eax, eax
je 0x41e551
mov ecx, dword [ebp - 0x410]
mov edi, dword [ebp + 0xc]
sub edi, ecx
mov dword [ebp - 0x40c], eax
inc edx
and edx, 0x800000ff
jns 0x41e4f4
dec edx
or edx, 0xffffff00
inc edx
mov eax, dword [ebp + edx*4 - 0x404]
add esi, eax
and esi, 0x800000ff
jns 0x41e50d
dec esi
or esi, 0xffffff00
inc esi
mov ebx, dword [ebp + esi*4 - 0x404]
mov dword [ebp + edx*4 - 0x404], ebx
mov dword [ebp + esi*4 - 0x404], eax
mov ebx, dword [ebp + edx*4 - 0x404]
add ebx, eax
and ebx, 0x800000ff
jns 0x41e53b
dec ebx
or ebx, 0xffffff00
inc ebx
mov al, byte [ebp + ebx*4 - 0x404]
xor al, byte [edi + ecx]
inc ecx
dec dword [ebp - 0x40c]
mov byte [ecx - 1], al
jne 0x41e4e3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.005232d4
mov esp, ebp
pop ebp
ret 0x10