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

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044c830
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44c700
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44c6e1
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.0044c830
push 0
push 1
push 2
call sub.WS2_32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
pop esi
jne 0x44c700
xor eax, eax
pop ecx
ret
lea ecx, [esp]
push 4
push ecx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x14], 0
call sub.WS2_32.dll_setsockopt
mov eax, 1
pop ecx
ret

Function at 0x44c730
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
xor eax, eax
push esi
push edi
mov dword [esp + 8], eax
mov edi, ecx
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push ecx
mov dword [esp + 0x18], eax
mov word [esp + 0xc], 2
call sub.WS2_32.dll_htons
mov esi, dword [esp + 0x1c]
mov word [esp + 0xa], ax
push esi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44c787
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x44c79d
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [esp + 0xc], ecx
lea edx, [esp + 8]
push 0x10
push edx
mov ecx, edi
call fcn.0044c7c0
pop edi
pop esi
add esp, 0x10
ret 8
push 0x2726
call sub.WS2_32.dll_WSASetLastError
pop edi
xor eax, eax
pop esi
add esp, 0x10
ret 8

Function at 0x44c7c0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
mov eax, dword [ecx]
push edx
push eax
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

Function at 0x44c850
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x44c899
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4
Function at 0x44cd10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x472420
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.0044c8c0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.0044c940
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.0044c940
lea ecx, [esi + 0xc]
call fcn.00463e66
lea ecx, [esi + 0x10]
call fcn.00463e66
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0044f170
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0044f170
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0044f170
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00463edb
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00463edb
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret

Function at 0x44d9b8
Capabilities:
Get hostname

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x472648
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x44d9c8
call fcn.0044dee0
mov edi, dword [esp + 0x7c]
test edi, edi
je 0x44daab
cmp byte [edi], 0
je 0x44daab
mov eax, dword [esp + 0x8c]
test eax, eax
jg 0x44d9ed
mov eax, 0x7d0
mov ecx, esi
mov dword [esi + 8], eax
call fcn.0044c6e0
test eax, eax
jne 0x44da0d
push 0x4b6460
lea ecx, [esi + 0x38]
call fcn.00464018
jmp 0x44daab
mov eax, dword [esp + 0x80]
mov ecx, esi
push eax
push edi
call fcn.0044c730
test eax, eax
jne 0x44da3c
mov ecx, esi
call fcn.0044c830
push edi
add esi, 0x38
push 0x4b643c
push esi
call fcn.00461e77
add esp, 0xc
jmp 0x44daab
push 0xdc
mov ecx, esi
mov dword [esi + 4], 1
call fcn.0044e760
test eax, eax
je 0x44daa4
lea ecx, [esp + 8]
push 0x64
push ecx
call sub.WS2_32.dll_gethostname
mov eax, dword [esp + 0x88]
mov ecx, dword [esp + 0x84]
lea edx, [esp + 0x8c]
mov dword [esp + 0x8c], 1
push edx
push eax
lea edx, [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.0044db80
test eax, eax
jne 0x44dac0
push edi
lea eax, [esi + 0x38]
push 0x4b6418
push eax
call fcn.00461e77
add esp, 0xc
mov ecx, esi
call fcn.0044dee0
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
mov eax, dword [esp + 0x8c]
test eax, eax
je 0x44db68
mov ecx, dword [0x4b69fc]
mov dword [esp + 0x7c], ecx
lea edx, [esp + 8]
lea eax, [esp + 0x7c]
push edx
push str.HELO__s_r_n
push eax
mov dword [esp + 0x80], 0
call fcn.00461e77
mov edx, dword [esp + 0x88]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
mov ecx, esi
call fcn.0044c7e0
test eax, eax
jne 0x44db2a
push 0x4b63fc
lea ecx, [esi + 0x38]
call fcn.00464018
jmp 0x44db3a
push 0xfa
mov ecx, esi
call fcn.0044e760
test eax, eax
jne 0x44db57
mov ecx, esi
call fcn.0044dee0
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00463edb
jmp 0x44daab
lea ecx, [esp + 0x7c]
mov dword [esp + 0x74], 0xffffffff
call fcn.00463edb
mov ecx, dword [esp + 0x6c]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x70
ret 0x14
Function at 0x466282
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4662ba
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00464336
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046430e
jmp 0x4662c6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x467970
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4679b2
call fcn.0046d57e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4679b2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4679a9
xor eax, eax
jmp 0x4679ba
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004679c0
pop edi
pop esi
pop ebx
ret 4

Function at 0x46daae
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46dadc
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46dafa
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046da14
jmp 0x46dafa
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46dafa
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046da14
test edi, edi
mov eax, edi
jne 0x46dae4
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404670
Capabilities:
Get graphical window text
Write file on windows

Disassembly:
push ebp
mov ecx, 0x104
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x25c
lea ebx, [ebp - 0x128]
mov dword [esp + 8], ecx
mov esi, dword [ebp + 8]
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleFileNameA
sub esp, 0xc
add eax, ebx
jmp 0x4046a6
dec eax
cmp byte [eax], 0x5c
jne 0x4046a5
mov dword [esp], ebx
inc eax
mov edi, pe_nt_image_headers32
mov dword [esp + 4], eax
call sub.KERNEL32.dll_lstrcpyA
sub esp, 8
mov dword [esp], ebx
call sub.KERNEL32.dll_lstrlenA
mov dl, 0x74
mov cl, 0x78
sub esp, 4
mov byte [eax + ebp - 0x129], dl
mov dl, 0x74
mov byte [eax + ebp - 0x12a], cl
xor ecx, ecx
mov byte [eax + ebp - 0x12b], dl
mov edx, 2
xor eax, eax
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x14], edi
mov edi, 0x40000000
mov dword [esp + 0x10], edx
mov dword [esp + 4], edi
mov dword [esp], ebx
mov ebx, 1
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
call sub.KERNEL32.dll_CreateFileA
mov edi, eax
mov edx, dword [esi + 0x520]
sub esp, 0x1c
mov eax, dword [esi + 0x524]
imul eax, edx
dec eax
jl 0x4047e2
lea esi, [esi]
lea edi, [edi]
lea edx, [ebx + 0xfa0]
mov dword [esp + 4], edx
mov eax, dword [esi + 0x6ad4]
mov dword [esp], eax
call sub.USER32.dll_GetDlgItem
sub esp, 8
lea edx, [ebp - 0x238]
mov ecx, 0x104
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.USER32.dll_GetWindowTextA
sub esp, 0xc
mov ecx, 0x40e0d0
lea eax, [ebp - 0x238]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcatA
sub esp, 8
xor ecx, ecx
mov edx, eax
cmp byte [eax], 0
jmp 0x4047a5
inc edx
inc ecx
cmp byte [edx], 0
jne 0x4047a0
mov dword [esp + 8], ecx
xor edx, edx
inc ebx
mov dword [esp + 0x10], edx
lea edx, [ebp - 0x23c]
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.KERNEL32.dll_WriteFile
mov ecx, dword [esi + 0x524]
sub esp, 0x14
mov eax, dword [esi + 0x520]
imul ecx, eax
cmp ecx, ebx
jge 0x404740
mov dword [esp], edi
call sub.KERNEL32.dll_CloseHandle
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404d20
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ecx, 1
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14c
mov dword [ebp - 0x144], ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x140], ebx
mov ecx, dword [eax + 0x520]
mov dword [ebp - 0x13c], eax
cmp ecx, 1
jl 0x404e27
mov edx, dword [eax + 0x524]
lea esi, [esi]
xor esi, esi
cmp edx, 1
mov ebx, 1
jge 0x404dd7
jmp 0x404e08
cmp edx, 2
je 0x404df0
mov dword [esp + 4], edi
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.USER32.dll_GetDlgItem
sub esp, 8
lea edx, [ebp - 0x128]
mov ecx, 0xff
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp], eax
call sub.USER32.dll_GetWindowTextA
sub esp, 0xc
mov ecx, 0x40d024
lea eax, [ebp - 0x128]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcmpA
sub esp, 8
cmp eax, 1
mov eax, dword [ebp - 0x13c]
adc esi, 0
inc ebx
mov edx, dword [eax + 0x524]
cmp edx, ebx
jl 0x404e02
cmp edx, 1
jne 0x404d71
mov edi, dword [ebp - 0x144]
add edi, 0x1388
jmp 0x404d76
mov edx, dword [ebp - 0x144]
lea edi, [ebx + edx*2 + 0x1386]
jmp 0x404d76
mov ecx, dword [eax + 0x520]
xor ebx, ebx
cmp edx, esi
sete bl
inc dword [ebp - 0x144]
add dword [ebp - 0x140], ebx
cmp ecx, dword [ebp - 0x144]
jge 0x404d60
mov dword [esp + 0xc], ecx
mov eax, str._d____d
lea ebx, [ebp - 0x138]
mov esi, dword [ebp - 0x140]
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 8], esi
call sub.USER32.dll_wsprintfA
mov dword [esp + 8], ebx
mov edx, dword [ebp - 0x13c]
mov ecx, 0x20
mov dword [esp + 4], ecx
mov edi, dword [edx + 0x6b00]
mov dword [esp], edi
call sub.USER32.dll_SetDlgItemTextA
mov esi, dword [ebp - 0x140]
sub esp, 0xc
test esi, esi
je 0x404ebe
mov ebx, dword [ebp - 0x140]
mov edi, 0x1e
mov edx, dword [ebp - 0x140]
mov dword [esp + 4], edi
shl ebx, 6
add ebx, edx
mov edx, dword [ebp - 0x13c]
lea ecx, [edx + ebx*4 + 0x424]
mov dword [esp + 8], ecx
mov edi, dword [edx + 0x6b00]
mov dword [esp], edi
call sub.USER32.dll_SetDlgItemTextA
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebp - 0x13c]
mov esi, str.
mov eax, 0x1e
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov edi, dword [edx + 0x6b00]
mov dword [esp], edi
call sub.USER32.dll_SetDlgItemTextA
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40a320
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40a356
mov dword [0x413480], eax
mov edx, 0x40a300
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040aba0
test eax, eax
sete al
movzx eax, al
mov dword [0x40d090], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x40d090], eax
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], 0x4085d0
mov dword [ebp - 0x24], 0x40c138
mov dword [ebp - 0x1c], 0x40a500
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call fcn.0040afc0
cmp dword [0x40d090], 0
mov dword [ebp - 0x44], 0x413490
je 0x40a4e0
jl 0x40a520
mov dword [ebp - 0x3c], 1
mov eax, dword [0x413480]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x40a5c3
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.0040b0a0
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x4134e0]
mov eax, 0xffffffff
test edx, edx
je 0x40a53a
mov eax, dword [0x40d094]
test eax, eax
je 0x40a57a
xor eax, eax
test eax, eax
jne 0x40a570
mov edi, dword [0x40d090]
test edi, edi
js 0x40a570
mov dword [ebp - 0x44], 0x413490
mov ebx, dword [0x40d090]
test ebx, ebx
je 0x40a4e0
jmp 0x40a48e
xor esi, esi
mov dword [0x40d090], esi
jmp 0x40a548
mov dword [esp], 0x40d098
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x40a601
mov eax, dword [0x40d094]
test eax, eax
jne 0x40a538
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x40d094]
test eax, eax
je 0x40a59d
jmp 0x40a538
mov dword [esp], 8
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x40a5f5
mov dword [esp + 4], eax
mov eax, dword [0x413480]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x40a62a
test edx, edx
je 0x40a615
mov dword [ebp - 0x3c], 1
call fcn.00409ea0
call fcn.0040a320
mov eax, 1
mov dword [0x40d094], eax
jmp 0x40a538
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x40a4d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x40a5f1
Function at 0x40a890
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.0040ba10
call fcn.0040aa40
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40a8c8
jmp 0x40a964
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x40a8c7
cmp cl, 0x22
je 0x40a920
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x40a940
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x40a940
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x40a900
jmp 0x40a940
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x40a920
cmp cl, 0x22
je 0x40a9a0
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x40a95e
inc ebx
movzx eax, byte [ebx]
cmp al, 0x20
sete dl
cmp al, 9
sete al
or eax, edx
test al, 1
jne 0x40a950
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x40a982
movzx edx, word [ebp - 0x28]
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004013b0
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x40a940

Function at 0x40aeb0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x413530]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40aef0
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.0040aba0
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x40b2a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x413530]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40b37c
mov ecx, dword [eax + 0x30]
test ecx, ecx
js 0x40b391
mov edx, dword [eax + 0x30]
test edx, edx
jne 0x40b350
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x40b2e8
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x40b2f8
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x40b343
test edx, edx
jne 0x40b336
test ecx, ecx
je 0x40b2e0
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x40b3a0
cmp eax, 8
je 0x40b2e0
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40b2d2
call fcn.0040ac70
mov eax, dword [0x413530]
mov ecx, dword [eax + 0x30]
test ecx, ecx
jns 0x40b2c4
call fcn.0040af10
mov eax, dword [0x413530]
jmp 0x40b2c4
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.0040b210
cmp eax, 7
jne 0x40b33b
mov eax, dword [0x413530]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40b3f3
mov edi, dword [eax + 0x30]
test edi, edi
js 0x40b41e
mov esi, dword [eax + 0x30]
test esi, esi
jne 0x40b3ff
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.0040ac70
mov eax, dword [0x413530]
jmp 0x40b3d1
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40b3e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40b3e2
call fcn.0040af10
mov eax, dword [0x413530]
jmp 0x40b3d8
Function at 0x40b680
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x413530]
mov edi, dword [ebp + 8]
test eax, eax
je 0x40b714
mov esi, dword [eax + 0x30]
test esi, esi
js 0x40b730
mov ebx, dword [eax + 0x30]
test ebx, ebx
jne 0x40b750
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x40b708
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0040b210
cmp eax, 7
jne 0x40b7cf
mov eax, dword [0x413530]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40b7a6
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40b7c0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40b780
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0040b430
jmp 0x40b6c5
call fcn.0040ac70
mov eax, dword [0x413530]
mov esi, dword [eax + 0x30]
test esi, esi
jns 0x40b6a0
lea esi, [esi]
call fcn.0040af10
mov eax, dword [0x413530]
mov ebx, dword [eax + 0x30]
test ebx, ebx
je 0x40b6ab
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40b6ae
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40b6f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40b6f7
call fcn.0040ac70
mov eax, dword [0x413530]
mov edx, dword [eax + 0x30]
test edx, edx
jns 0x40b6e9
nop
lea esi, [esi]
call fcn.0040af10
mov eax, dword [0x413530]
jmp 0x40b6e9
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x40b7e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x40b872
mov eax, dword [0x413530]
test eax, eax
je 0x40b866
mov ebx, dword [eax + 0x30]
test ebx, ebx
js 0x40b8e1
mov ecx, dword [eax + 0x30]
test ecx, ecx
jne 0x40b887
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.0040b430
cmp eax, 7
jne 0x40b8ff
mov eax, dword [0x413530]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x40b8d2
mov edx, dword [eax + 0x30]
test edx, edx
js 0x40b8f0
mov edi, dword [eax + 0x30]
test edi, edi
jne 0x40b8b3
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.0040ac70
mov eax, dword [0x413530]
jmp 0x40b802
mov dword [esp], edi
call fcn.0040b2a0
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x40b817
mov eax, dword [eax + 0x2c]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x40b855
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x40b855
call fcn.0040ac70
mov eax, dword [0x413530]
jmp 0x40b840
call fcn.0040af10
mov eax, dword [0x413530]
jmp 0x40b80d
call fcn.0040af10
mov eax, dword [0x413530]
jmp 0x40b84b
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x42259d
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x4027c0
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4027ff
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4027ff
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4027ff
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4027ff
cmp dword [ecx + 0x74], 0xe
jbe 0x4027ff
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret