joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4145a0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x42d084]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 8], ecx
cmp dword [ebp - 0x1c], 0xffffffff
je 0x41466c
mov edx, 2
mov word [ebp - 0x14], dx
xor eax, eax
mov word [ebp - 0x12], ax
mov dword [ebp - 0x10], 0
push 0x10
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jge 0x41462b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0xffffffff
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x41466c
push 4
push 0x426704
push 0x1002
push 0xffff
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [0x42f398]
add ecx, 0x3a980
mov edx, dword [ebp + 8]
mov dword [edx + 0x2f], ecx
push 0x42f560
mov eax, dword [ebp + 8]
push eax
call fcn.00407340
add esp, 8
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004149ef
mov esp, ebp
pop ebp
ret
Function at 0x414780
Capabilities:
Create udp socket
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x42d084]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x10
mov dword [ebp - 4], 1
call fcn.0040cb50
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x4147bf
mov eax, dword [ebp - 0x20]
push eax
call fcn.00415b3d
add esp, 4
xor eax, eax
jmp 0x414904
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x20]
mov dword [ecx + 8], eax
mov edx, dword [0x42f398]
add edx, 0x3a980
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x2f], edx
push 0x42f560
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.00407340
add esp, 8
mov edx, 2
mov word [ebp - 0x1c], dx
cmp dword [0x42f668], 0
jne 0x41480c
cmp dword [ebp + 0x18], 0
je 0x414815
mov dword [ebp - 0x18], 0
jmp 0x41481c
mov dword [ebp - 0x18], 0x7f000001
mov ax, word [ebp + 8]
mov word [ebp - 0x1a], ax
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jge 0x414850
mov edx, dword [ebp - 0x20]
push edx
call fcn.00414680
add esp, 4
xor eax, eax
jmp 0x414904
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
push 4
push 0x426704
push 0x1002
push 0xffff
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [ebp - 0x20]
mov cx, word [ebp - 0x1a]
mov word [eax + 0x20], cx
cmp dword [ebp - 0x18], 0
je 0x4148b9
mov edx, dword [ebp - 0x18]
cmp edx, dword [0x42f3e0]
jne 0x4148c7
mov eax, dword [ebp - 0x20]
mov ecx, dword [0x42f3a4]
mov dword [eax + 0x18], ecx
jmp 0x4148d0
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x18]
mov dword [edx + 0x18], eax
mov ecx, dword [ebp - 0x20]
mov dx, word [ebp + 0x10]
mov word [ecx + 0x22], dx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x1c], ecx
cmp dword [ebp + 0x14], 0x200
je 0x4148f7
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x2f], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x27], 4
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.004149ef
mov esp, ebp
pop ebp
ret

Function at 0x4149ef
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d084]
jne 0x4149f9
repz ret
jmp fcn.0041685e
Function at 0x41e95a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42d084]
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.00419a74
and dword [ebp - 0x14], 0
cmp dword [0x42f060], 0
mov dword [ebp - 0x18], eax
jne 0x41ea0d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41eab5
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41eab5
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42f060], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42f064], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42f068], eax
call edi
push eax
call esi
mov dword [0x42f070], eax
test eax, eax
je 0x41ea0d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42f06c], eax
mov eax, dword [0x42f06c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41ea66
cmp dword [0x42f070], ecx
je 0x41ea66
push eax
call esi
push dword [0x42f070]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41ea66
test ebx, ebx
je 0x41ea66
call edi
test eax, eax
je 0x41ea5d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41ea5d
test byte [ebp - 8], 1
jne 0x41ea66
or dword [ebp + 0x10], 0x200000
jmp 0x41ea99
mov eax, dword [0x42f064]
cmp eax, dword [ebp - 0x18]
je 0x41ea99
push eax
call esi
test eax, eax
je 0x41ea99
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41ea99
mov eax, dword [0x42f068]
cmp eax, dword [ebp - 0x18]
je 0x41ea99
push eax
call esi
test eax, eax
je 0x41ea99
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42f060]
call esi
test eax, eax
je 0x41eab5
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41eab7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004149ef
leave
ret
Function at 0x1001b6a3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x1001b6b2
pop dword [ebp - 0x34]
mov eax, 0xe1ee1664
add eax, 0x2e13a04e
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x6223c7f0
add dword [ebp - 0x44], 0xec2e7d5b
mov dword [ebp - 0x40], 0xc778589
sub dword [ebp - 0x40], 0xda443944
mov dword [ebp - 0x3c], 0xd2803265
sub dword [ebp - 0x3c], 0x8633ee37
mov dword [ebp - 0x38], 0x640361cd
sub dword [ebp - 0x38], 0x640361cd
lea eax, [ebp - 0x44]
push eax
mov eax, 0x17b06dd4
sub eax, 0x7ae7d30
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xc789f80
add dword [ebp - 0x44], 0x67f9c9d6
mov dword [ebp - 0x40], 0x9aa6c01a
sub dword [ebp - 0x40], 0x593a5ea5
mov dword [ebp - 0x3c], 0x246f272b
add dword [ebp - 0x3c], 0x3f004541
mov dword [ebp - 0x38], 0x14a4e3ca
sub dword [ebp - 0x38], 0x14a4e3ca
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3a57a
push 0
call eax
mov ecx, 0x120fa3ad
add ecx, 0xedf0a172
xor esi, esi
add esi, eax
mov edx, 0x10029a00
add edx, dword [ebp - 0x34]
mov edi, 0x7b106c73
add edi, 0xe4316edc
add dword [ebp - 8], edx
mov ebx, dword [edx]
sub dword [ebp - 4], 0x431cb3c5
xor ebx, edi
sub dword [ebp - 0x24], 0x65c8577a
mov dword [esi], ebx
xor dword [ebp - 0x10], edx
add esi, 0x97a88f41
add esi, 0x685770c3
add edx, 4
loop 0x1001b7cb
add eax, 0xaf164da3
sub eax, 0xaf154654
mov ebx, eax
add eax, 0x1c528e4d
add eax, 0xe3ad71b8
mov ecx, 0x10000000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x1001cc37
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
jne 0x1001ccba
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push 0
lea eax, [ebp + 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push dword [esi + 0x30]
call dword [sym.imp.kernel32.dll_ReadFile]
mov edi, dword [ebp + 0x10]
cmp edi, ebx
je 0x1001cc84
mov byte [esi + 0x2d], 0xff
test edi, edi
je 0x1001cc84
cmp edi, ebx
jge 0x1001cc84
mov eax, dword [ebp + 0xc]
mov ecx, ebx
sub ecx, edi
push ecx
add eax, edi
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
cmp dword [esi + 0x18], 0
je 0x1001ccb4
add dword [esi + 0x1c], ebx
cmp dword [esi + 0x1c], 0xffff
jle 0x1001ccb4
xor eax, eax
mov word [esi + 0x1e], ax
mov eax, dword [esi]
push esi
call dword [eax + 0x2c]
mov ecx, dword [esi + 0x18]
mov edx, dword [ecx]
push 1
push dword [esi + 0x20]
push eax
push ecx
call dword [edx + 0xc]
mov edi, dword [ebp + 0x10]
mov eax, edi
pop edi
pop ebx
jmp 0x1001cccc
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x1001cf62
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x100268b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
mov edi, dword [ebp + 0xc]
cmp byte [0x100269c0], al
je 0x1001cf99
push ebx
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.kernel32.dll_GetTempFileNameW]
jmp 0x1001cffd
push 0x103
push eax
mov byte [ebp - 0x108], al
lea eax, [ebp - 0x107]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x310]
push eax
push esi
call fcn.1001b6a3
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.1001b6a3
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
mov esi, eax
push ebx
lea eax, [ebp - 0x108]
push eax
call fcn.1001b6a3
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001ddeb
leave
ret 0x10

Function at 0x1001d00e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100268b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100269c0], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x1001d03a
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x1001d06b
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x1001d069
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.1001b6a3
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x1001d06b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1001ddeb
leave
ret 8

Function at 0x1001d106
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100268b0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x100269c0], 0
mov eax, dword [ebp + 8]
je 0x1001d12e
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x1001d148
lea ecx, [ebp - 0x108]
push ecx
push eax
call fcn.1001b6a3
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
test eax, eax
setne al
xor ecx, ebp
call fcn.1001ddeb
leave
ret 4

Function at 0x1001ddeb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100268b0]
jne 0x1001ddf5
repz ret
jmp fcn.1001e62c
Function at 0x40aef0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.0041a160
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.0041a160
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x40af50
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x540068]
test esi, esi
jle 0x40b070
mov eax, dword [0x54006c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x40af84
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40b007
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40af70
mov dword [esp], ebx
call fcn.0040b940
mov edi, eax
test eax, eax
je 0x40b097
mov eax, dword [0x54006c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.0040ba80
mov edx, dword [0x54006c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40b077
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40b000
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x40b010
add dword [0x540068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x54006c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40b000
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040aef0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40af8e
mov eax, dword [0x54006c]
mov eax, dword [eax + ebx + 0xc]
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.0040aef0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040aef0
lea esi, [esi]
nop
Function at 0x40b5b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x540084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x54007c]
sub esp, 4
test ebx, ebx
je 0x40b605
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
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 0x40b5fe
test esi, esi
je 0x40b5fe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40b5e0
mov dword [esp], 0x540084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40b940
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x40b965
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x40b970
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x40b965
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x40b9b8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40b9ae
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40b9ba
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x40b9a0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x410e30
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push edi
push esi
push ebx
sub esp, 0x220
mov ebx, dword [esp + 0x230]
call sub.msvcrt.dll__errno
mov dword [eax], 0
test ebx, ebx
je 0x410fb0
cmp word [ebx], 0
je 0x410f90
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
cmp eax, 0xffffffff
je 0x410fc0
test al, 0x10
je 0x410f90
lea esi, [esp + 0x18]
mov dword [esp + 4], ebx
mov dword [esp + 8], 0x104
mov dword [esp], esi
call sub.msvcrt.dll__wfullpath
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x4ea480
mov ebx, eax
call sub.msvcrt.dll_wcslen
mov dword [esp], 0x4ea484
add ebx, eax
call sub.msvcrt.dll_wcslen
lea eax, [ebx + eax + 0x21d]
add eax, eax
mov dword [esp], eax
call sub.msvcrt.dll_malloc
mov ebx, eax
test eax, eax
je 0x410fcf
lea edi, [eax + 0x434]
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.msvcrt.dll_wcscpy
cmp word [ebx + 0x434], 0
jne 0x410f48
mov dword [esp], edi
mov dword [esp + 4], 0x4ea484
call sub.msvcrt.dll_wcscat
lea edx, [ebx + 0x224]
xor eax, eax
mov ecx, 0x82
mov dword [ebx + 0x42c], 0xffffffff
mov edi, edx
mov dword [ebx + 0x430], 0
mov dword [ebx + 0x21c], 0
mov dword [ebx + 0x220], 0
rep stosd dword es:[edi], eax
add esp, 0x220
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 + 0x432], 0x2f
je 0x410eed
mov dword [esp], edi
call sub.msvcrt.dll_wcslen
cmp word [ebx + eax*2 + 0x432], 0x5c
je 0x410eed
mov dword [esp + 4], 0x4ea480
mov dword [esp], edi
call sub.msvcrt.dll_wcscat
jmp 0x410eed
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0x14
add esp, 0x220
mov eax, ebx
pop ebx
pop esi
pop edi
ret
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0xe
jmp 0x410f9d
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 2
jmp 0x410f9d
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [eax], 0xc
jmp 0x410f9d
Function at 0x41c840
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push edi
xor eax, eax
mov ecx, 0x10
sub esp, 0x88
lea edi, [esp + 0x40]
mov dword [esp + 0x15], 0x6f727245
mov dword [esp + 0x19], 0x6c632072
mov dword [esp + 0x1d], 0x696e6165
mov dword [esp + 0x21], 0x7520676e
mov dword [esp + 0x25], 0x70732070
mov dword [esp + 0x29], 0x6b5f6e69
mov dword [esp + 0x2d], 0x20737965
mov dword [esp + 0x31], 0x20726f66
mov dword [esp + 0x35], 0x65726874
mov dword [esp + 0x39], 0x206461
mov dword [esp + 0x3d], 0
mov dword [esp + 0x7c], 0
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
je 0x41c91b
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x41c8ed
cmp eax, 0x6a
je 0x41c90a
mov ecx, eax
add eax, 1
cmp byte [edx + eax], 0
jne 0x41c8e8
cmp eax, 0x6a
je 0x41c90a
add ecx, 2
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + ecx + 0x15], 0
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
sub esp, 4
call sub.msvcrt.dll_abort
mov ecx, 0x28
mov eax, 0x27
lea edx, [esp + 0x15]
jmp 0x41c900

Function at 0x41cca0
Capabilities:
Allocate thread local storage

Disassembly:
cmp dword [0x540bd4], 1
je 0x41cd58
push edi
mov eax, 0x540bd4
push esi
push ebx
sub esp, 0x10
call fcn.0041c620
lea esi, [eax + 4]
mov ebx, eax
mov dword [esp], esi
call fcn.0041bea0
mov edi, dword [0x540bd4]
test edi, edi
jne 0x41cd10
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x4e2098], eax
cmp eax, 0xffffffff
je 0x4db0d1
mov dword [0x540bd4], 1
mov dword [esp], esi
call fcn.0041c1e0
test ebx, ebx
je 0x41cd4a
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop edi
jmp fcn.0041c930
cmp edi, 1
je 0x41ccf2
mov dword [esp], 2
call dword [0x4e2084]
mov dword [esp + 0xc], edi
mov dword [esp + 8], 0x540bd4
mov dword [esp + 4], str._once__p_is__d_n
mov dword [esp], eax
call sub.msvcrt.dll_fprintf
mov dword [esp], esi
call fcn.0041c1e0
test ebx, ebx
jne 0x41ccfe
add esp, 0x10
pop ebx
pop esi
pop edi
ret
ret
call sub.msvcrt.dll_abort
Function at 0x41cd60
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.0041ca20
mov edx, dword [entry3]
test edx, edx
je 0x41ce90
mov ebx, eax
test eax, eax
je 0x41ce90
mov dword [eax + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x18], eax
sub esp, 0x10
lea eax, [ebx + 0x38]
mov dword [esp], eax
call fcn.0041c520
cmp eax, 1
je 0x41ce9c
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebx + 0x38], 0xffffffff
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov esi, eax
call ebp
lea edx, [ebx + 0x14]
mov dword [esp + 8], edi
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je fcn.004db0d6
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x4e2098]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x41cea1
add esp, 0x2c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x2c
xor ebx, ebx
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.0041c840
jmp fcn.004db0d6

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

Disassembly:
sub esp, 0x1c
call fcn.0041cca0
mov eax, dword [0x4e2098]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
test eax, eax
je 0x41ced8
add esp, 0x1c
ret
add esp, 0x1c
jmp fcn.0041cd60