joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401570
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x4c
mov dword [esp + 4], 0x8000
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll__open
cmp eax, 0xffffffff
mov ebx, eax
je 0x401650
lea eax, [esp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__fstati64]
cmp eax, 0xffffffff
je 0x401628
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
test eax, eax
mov dword [esi], ebp
mov dword [esi + 4], eax
js 0x401635
mov dword [esp], ebp
call sub.msvcrt.dll_malloc
test eax, eax
mov edi, eax
je 0x401635
mov dword [esp + 8], ebp
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll__read
mov edx, dword [esi + 4]
mov ecx, eax
xor eax, dword [esi]
sar ecx, 0x1f
xor edx, ecx
or edx, eax
jne 0x401600
mov dword [esp], ebx
call sub.msvcrt.dll__close
mov eax, edi
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [sym.imp.msvcrt.dll__errno]
call esi
mov ebp, dword [eax]
mov dword [esp], ebx
call sub.msvcrt.dll__close
mov dword [esp], edi
call fcn.0044ea98
call esi
mov dword [eax], ebp
add esp, 0x4c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esi], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov esi, dword [sym.imp.msvcrt.dll__errno]
call esi
mov ebp, dword [eax]
mov dword [esp], ebx
call sub.msvcrt.dll__close
jmp 0x40161a
xor eax, eax
jmp 0x4015f5

Function at 0x401660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x220
lea ebx, [ebp - 0x210]
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
sub eax, 1
sub esp, 8
cmp eax, 0x102
ja 0x4016d0
lea esi, [ebp - 0x10c]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], str.fastboot
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
sub esp, 0x10
test eax, eax
je 0x4016e6
mov dword [esp], esi
mov dword [esp + 4], str.wbTD
call sub.msvcrt.dll_fopen
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.GetTempPath_failed__error__ld
mov dword [esp + 4], eax
call fcn.0040a700
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.GetTempFileName_failed__error__ld
mov dword [esp + 4], eax
call fcn.0040a700
lea esi, [esi]
sub esp, 0x1c
mov eax, dword [esp + 0x20]
mov eax, dword [eax]
mov edx, dword [eax + 4]
mov edx, dword [edx]
mov dword [esp + 8], edx
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call fcn.0040c1c0
add esp, 0x1c
ret
Function at 0x40d090
Capabilities:
Get socket status

Disassembly:
push ebp
mov eax, ecx
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x13c
mov dword [ebp - 0x130], ecx
mov ecx, dword [ebp + 8]
mov byte [eax + 8], 0
test ecx, ecx
jle 0x40d180
mov ebx, dword [eax + 4]
cmp ebx, 0xffffffff
je 0x40d190
mov eax, ecx
mov edx, 0x10624dd3
imul edx
mov eax, ecx
sar eax, 0x1f
mov dword [ebp - 0x118], ebx
lea edi, [ebp - 0x124]
mov dword [ebp - 0x11c], 1
lea esi, [ebp - 0x11c]
sar edx, 6
sub edx, eax
mov eax, ebx
mov ebx, dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x124], edx
imul edx, edx, 0x3e8
sub ecx, edx
imul ecx, ecx, 0x3e8
mov dword [ebp - 0x120], ecx
add eax, 1
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], esi
mov dword [esp], eax
call ebx
sub esp, 0x14
cmp eax, 0xffffffff
mov edx, eax
je 0x40d158
test eax, eax
jne 0x40d148
mov eax, dword [ebp - 0x130]
mov byte [eax + 8], 1
cmp edx, 1
sete al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 4
mov dword [ebp - 0x12c], eax
call dword [sym.imp.msvcrt.dll__errno]
mov edx, dword [ebp - 0x12c]
cmp dword [eax], 4
jne 0x40d148
mov eax, dword [ebp - 0x130]
mov eax, dword [eax + 4]
jmp 0x40d110
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret 4
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret 4

Function at 0x412010
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x1c
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
test esi, esi
jne 0x41203a
jmp 0x412064
je 0x412070
add ebx, eax
add ebp, eax
cmp esi, ebx
jbe 0x412064
mov eax, esi
sub eax, ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], edi
call sub.msvcrt.dll__read
test eax, eax
jns 0x412030
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
add esp, 0x1c
pop ebx
pop esi
pop edi
neg eax
pop ebp
ret
add esp, 0x1c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x1c
mov eax, 0xffffffea
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x412420
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
test ebx, ebx
not eax
je 0x41244e
add ebx, edx
add edx, 1
mov ecx, eax
xor cl, byte [edx - 1]
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x4bb780]
cmp edx, ebx
jne 0x412435
not eax
pop ebx
ret
Function at 0x423db0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x423de1
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x423de1
mov esi, dword [ebx + 0x24]
test esi, esi
je 0x423de1
mov esi, dword [ebx + 0x1c]
mov eax, 0xfffffffe
test esi, esi
je 0x423ddb
cmp ebx, dword [esi]
je 0x423df0
add esp, 0x14
pop ebx
pop esi
ret
add esp, 0x14
mov eax, 0xfffffffe
pop ebx
pop esi
ret
mov edx, dword [esi + 4]
cmp edx, 0x2a
je 0x423e01
cmp edx, 0x39
jne 0x423f31
mov dword [ebx + 0x14], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x2c], 2
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
test eax, eax
jns 0x423e36
neg eax
mov dword [esi + 0x18], eax
cmp eax, 2
je 0x423f70
cmp eax, 1
sbb eax, eax
and eax, 0x47
add eax, 0x2a
mov dword [esi + 4], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00421a00
mov dword [ebx + 0x30], eax
mov dword [esi + 0x28], 0xfffffffe
mov dword [esp], esi
call fcn.00427fc0
mov ebx, dword [ebx + 0x1c]
xor ecx, ecx
mov eax, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x4c]
add eax, eax
mov dword [ebx + 0x3c], eax
mov eax, dword [ebx + 0x44]
mov word [eax + edx*2 - 2], cx
mov eax, dword [ebx + 0x4c]
lea edx, [eax + eax - 2]
mov eax, dword [ebx + 0x44]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x84]
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x74], 0
lea edx, [eax + eax*2]
shl edx, 2
lea eax, [edx + 0x4bf780]
movzx ecx, word [edx + 0x4bf782]
movzx edx, word [edx + 0x4bf780]
mov dword [ebx + 0x16b4], 0
mov dword [ebx + 0x78], 2
mov dword [ebx + 0x80], ecx
mov dword [ebx + 0x8c], edx
movzx edx, word [eax + 4]
movzx eax, word [eax + 6]
mov dword [ebx + 0x60], 2
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x90], edx
mov dword [ebx + 0x7c], eax
xor eax, eax
mov dword [ebx + 0x48], 0
add esp, 0x14
pop ebx
pop esi
ret
cmp edx, 0x45
je 0x423e01
cmp edx, 0x49
je 0x423e01
cmp edx, 0x5b
je 0x423e01
cmp edx, 0x67
nop
je 0x423e01
cmp edx, 0x71
je 0x423e01
cmp edx, 0x29a
jne 0x423ddb
jmp 0x423e01
mov dword [esi + 4], 0x39
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00417e20
jmp 0x423e69
Function at 0x4290e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24c
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax - 0xc]
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.0047e0b0
lea eax, [ebp - 0x248]
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__fstati64]
cmp eax, 0xffffffff
je 0x42914a
cmp dword [ebp - 0x22c], 0
mov eax, dword [ebp - 0x230]
jle 0x42919b
mov ecx, dword [ebp + 0xc]
mov dword [esp], eax
call fcn.0047dfd0
sub esp, 4
lea ebx, [ebp - 0x218]
mov dword [esp + 8], 0x200
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov edi, eax
je 0x429183
test eax, eax
jle 0x42918e
mov ecx, dword [ebp + 0xc]
mov dword [esp + 4], edi
mov dword [esp], ebx
call fcn.0047d050
sub esp, 8
jmp 0x429150
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x429150
test edi, edi
sete al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
jl 0x42914a
cmp eax, 0
ja 0x42913c
jmp 0x42914a

Function at 0x4293b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], edx
test eax, eax
je 0x429456
mov eax, dword [sym.imp.msvcrt.dll__errno]
lea ebx, [ebp - 0x2c]
mov dword [ebp - 0x48], eax
nop
lea esi, [esi]
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov edi, eax
mov esi, edx
mov eax, dword [ebp + 8]
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 0x10], 0
mov dword [ebp - 0x24], edi
mov dword [esp], eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.msvcrt.dll__get_osfhandle]
lea edx, [ebp - 0x30]
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0xc], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 0x10], ebx
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
sub esp, 0x14
test eax, eax
je 0x429480
mov ecx, dword [ebp - 0x30]
cmp ecx, 0xffffffff
je 0x429463
test ecx, ecx
jle 0x429474
mov eax, ecx
cdq
add dword [ebp + 0xc], ecx
add dword [ebp - 0x40], ecx
adc dword [ebp - 0x3c], edx
sub dword [ebp + 0x10], ecx
jne 0x4293e0
lea esp, [ebp - 0xc]
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [sym.imp.msvcrt.dll__errno]
call edx
cmp dword [eax], 4
je 0x4293ea
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
call eax
mov edx, dword [ebp - 0x44]
mov dword [eax], 5
jmp 0x429469
Function at 0x42b800
Capabilities:
Create directory

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__mktemp]
test eax, eax
je 0x42b830
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__mkdir]
cmp eax, 0xffffffff
je 0x42b830
mov eax, ebx
add esp, 0x18
pop ebx
ret
xor eax, eax
jmp 0x42b825

Function at 0x42cb80
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8
lea eax, [ebp - 0x8c]
mov dword [esp + 8], eax
lea eax, [ebp - 0x88]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x8c], pe_nt_image_headers32
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_getsockname]
sub esp, 0xc
test eax, eax
jne 0x42cbd2
movzx eax, word [ebp - 0x86]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ntohs]
sub esp, 4
movzx eax, ax
leave
ret
mov eax, 0xffffffff
leave
ret

Function at 0x42cbe0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x50
call fcn.0042ce70
test al, al
jne 0x42cc00
mov eax, 0xffffffff
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], 0
mov dword [esp], 0x17
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
cmp eax, 0xffffffff
mov ebx, eax
je 0x42cbf1
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x28], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xfffffffb
mov dword [esp + 4], 0xffff
mov dword [esp], ebx
call esi
sub esp, 0x14
cmp eax, 0xffffffff
je 0x42cd30
lea eax, [ebp - 0x28]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 0x29
mov dword [esp], ebx
call esi
sub esp, 0x14
cmp eax, 0xffffffff
je 0x42cd30
xor eax, eax
mov dword [ebp + eax - 0x24], 0
add eax, 4
cmp eax, 0x1c
jb 0x42cc9c
mov eax, 0x17
mov word [ebp - 0x24], ax
movzx eax, word [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x22], ax
mov eax, dword [0x4c0ab8]
sub esp, 4
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [ebp - 0x1c], eax
mov eax, dword [0x4c0abc]
mov dword [ebp - 0x18], eax
mov eax, dword [0x4c0ac0]
mov dword [ebp - 0x14], eax
mov eax, dword [0x4c0ac4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_bind]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x42cd30
cmp dword [ebp + 0xc], 1
je 0x42cd16
mov eax, ebx
jmp 0x42cbf6
mov dword [esp + 4], 4
mov dword [esp], ebx
call dword [sym.imp.WS2_32.dll_listen]
sub esp, 8
cmp eax, 0xffffffff
jne 0x42cd0f
nop
mov dword [esp], ebx
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
jmp 0x42cbf1
Function at 0x42cd50
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x54
call fcn.0042ce70
test al, al
jne 0x42cd70
mov eax, 0xffffffff
mov ebx, dword [ebp - 4]
leave
ret
xor eax, eax
mov dword [ebp + eax - 0x28], 0
add eax, 4
cmp eax, 0x20
jb 0x42cd72
mov eax, dword [ebp + 0x10]
lea ebx, [ebp - 0x38]
mov dword [esp + 8], 0x4c090c
mov dword [esp + 4], 0x10
mov dword [esp], ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], 0
mov dword [esp + 0xc], eax
call fcn.0044efc0
lea eax, [ebp - 0x3c]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x28]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
sub esp, 0x10
test eax, eax
mov eax, dword [ebp - 0x3c]
jne 0x42ce39
test eax, eax
je 0x42cd60
mov edx, dword [eax + 0xc]
mov dword [esp + 8], edx
mov edx, dword [eax + 8]
mov dword [esp + 4], edx
mov eax, dword [eax + 4]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_socket]
sub esp, 0xc
cmp eax, 0xffffffff
mov ebx, eax
je 0x42ce5e
mov eax, dword [ebp - 0x3c]
mov edx, dword [eax + 0x10]
mov dword [esp + 8], edx
mov eax, dword [eax + 0x18]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.WS2_32.dll_connect]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x42ce52
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, ebx
sub esp, 4
jmp 0x42cd65
test eax, eax
je 0x42cd60
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
sub esp, 4
jmp 0x42cd60
mov dword [esp], ebx
call dword [sym.imp.WS2_32.dll_closesocket]
sub esp, 4
mov eax, dword [ebp - 0x3c]
jmp 0x42ce41
Function at 0x42ef7b
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
add esp, 0xffffff80
cmp dword [ebp + 8], 0
jne 0x42ef8e
jmp 0x42f0c2
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0042e7ac
cmp eax, 1
jne 0x42f0ba
mov dword [ebp - 0x77], 0x6f727245
mov dword [ebp - 0x73], 0x6c632072
mov dword [ebp - 0x6f], 0x696e6165
mov dword [ebp - 0x6b], 0x7520676e
mov dword [ebp - 0x67], 0x70732070
mov dword [ebp - 0x63], 0x6b5f6e69
mov dword [ebp - 0x5f], 0x20737965
mov dword [ebp - 0x5b], 0x20726f66
mov dword [ebp - 0x57], 0x65726874
mov dword [ebp - 0x53], 0x206461
lea edx, [ebp - 0x4f]
mov ebx, 0x43
mov eax, 0
mov ecx, edx
and ecx, 1
test ecx, ecx
je 0x42f006
mov byte [edx], al
add edx, 1
sub ebx, 1
mov ecx, edx
and ecx, 2
test ecx, ecx
je 0x42f018
mov word [edx], ax
add edx, 2
sub ebx, 2
mov ecx, ebx
shr ecx, 2
mov edi, edx
rep stosd dword es:[edi], eax
mov edx, edi
mov ecx, ebx
and ecx, 2
test ecx, ecx
je 0x42f032
mov word [edx], ax
add edx, 2
and ebx, 1
mov ecx, ebx
test ecx, ecx
je 0x42f040
mov byte [edx], al
add edx, 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov dword [esp + 8], 0xa
lea edx, [ebp - 0x77]
add edx, 0x27
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__ultoa]
call eax
mov dword [ebp - 0xc], 0x27
jmp 0x42f070
add dword [ebp - 0xc], 1
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x42f087
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
jbe 0x42f06c
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
ja 0x42f0a5
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0xc]
add eax, 1
mov byte [ebp + eax - 0x77], 0
lea eax, [ebp - 0x77]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
sub esp, 4
call sub.msvcrt.dll_abort
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x430034
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, 0x3c
mov dword [ebp - 0x1c], 0xffffffff
mov dword [esp + 4], 0x42fea9
mov dword [esp], 0x4cc834
call fcn.0042f60f
mov eax, dword [0x4b14d8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x43007b
mov eax, dword [ebp - 0x20]
jmp 0x4301c6
call fcn.0042ee84
mov dword [ebp - 0x20], eax
mov eax, dword [entry3]
test eax, eax
je 0x430092
cmp dword [ebp - 0x20], 0
jne 0x43009c
mov eax, 0
jmp 0x4301c6
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0042ef7b
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call eax
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call eax
sub esp, 0x1c
test eax, eax
jne 0x43016e
call sub.msvcrt.dll_abort
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
call eax
sub esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x20]
and edx, 0xffffffcf
or edx, 0x10
mov byte [eax + 0x20], dl
mov eax, dword [0x4b14d8]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
test eax, eax
jne 0x4301c3
call sub.msvcrt.dll_abort
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x43028a
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.00430034
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb4]
mov dword [esp], eax
call fcn.0042fecc
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x20]
and eax, 0x30
test al, al
jne 0x4302e3
mov eax, dword [ebp - 0x14]
add eax, 0x70
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_longjmp
mov eax, dword [0x4b14d8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43040d
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x430375
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x430332
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0042eda0
mov dword [ebp - 0x10], 0
mov eax, dword [0x4b14d8]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
jmp 0x43040d
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x68], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4303a5
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 4
test eax, eax
je 0x43040d
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0042eda0
mov dword [ebp - 0x10], 0
mov eax, dword [0x4b14d8]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__endthreadex]
call eax