joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43cfb9
Capabilities:
Create thread

Disassembly:
push 0x6c
mov eax, 0x482032
call fcn.00450edb
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
test esi, esi
jne 0x43cfd7
or dword [edi], 0xffffffff
jmp 0x43d07b
xor ebx, ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 4], ebx
cmp byte [ebp + 0x10], bl
je 0x43cff6
push esi
call fcn.0043cda7
pop ecx
mov esi, eax
lea ecx, [ebp - 0x48]
push esi
call fcn.0043cf85
lea ecx, [ebp - 0x54]
call fcn.0043c432
or dword [ebp - 0x38], 0xffffffff
lea eax, [ebp - 0x54]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 1
push eax
push 0x43cd8d
push ebx
push ebx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], ebx
call fcn.00464ca2
mov esi, eax
add esp, 0x18
test esi, esi
je 0x43d083
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0043c012
lea eax, [ebp - 0x54]
mov dword [ebp - 0x58], eax
mov ecx, eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x3c], esi
call fcn.0043c5b9
jmp 0x43d060
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x6c]
push 0xffffffffffffffff
push eax
call fcn.0043c69b
cmp dword [ebp - 0x3c], 0
jne 0x43d052
lea ecx, [ebp - 0x6c]
call fcn.0043c106
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x54]
mov dword [edi], eax
call fcn.0043c52d
mov eax, edi
call fcn.00450e8a
ret
lea ecx, [ebp - 0x78]
call fcn.0043c4ed
mov esi, eax
push 0x70
push str.ipc::Thread::start
push str.c:_jenkins_workspace_8_2_build_windows_i586_cygwin_sans_NAS_jdk8u381_237_install_src_ipc_windows_ThreadImpl.cpp
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.00403a94
push eax
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.0043c399
add esp, 0xc
lea eax, [ebp - 0x34]
push 0x4ac850
push eax
call fcn.0045437c
int3
Function at 0x442801
Capabilities:
Write file on windows

Disassembly:
push 0xd4
mov eax, 0x483090
call fcn.00450edb
mov esi, ecx
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0xe0]
xor ebx, ebx
call fcn.00449245
push dword [esi + 4]
lea eax, [ebp - 0xe0]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], 1
mov dword [ebp - 0x2c], eax
call fcn.00447dfe
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xd4]
call fcn.0040776e
push edi
mov byte [ebp - 4], 1
call fcn.00448c4b
pop ecx
cmp dword [ebp - 0x18], ebx
jne 0x442872
mov esi, 0x488554
push esi
call fcn.00456520
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0040655e
push 0x494e68
push 0x48fcbc
lea eax, [ebp - 0x40]
push edi
push eax
call fcn.00448f17
add esp, 0x10
mov cl, byte [eax + 4]
mov edx, dword [eax]
mov byte [eax + 4], bl
mov dword [ebp - 0x38], edx
mov byte [ebp - 0x34], cl
cmp byte [ebp - 0x3c], 0
mov byte [ebp - 4], 3
je 0x4428b0
push dword [ebp - 0x40]
mov byte [ebp - 0x3c], bl
call fcn.0047a1f1
mov edx, dword [ebp - 0x38]
pop ecx
mov byte [ebp - 4], 2
test edx, edx
jne 0x44292b
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.00448c09
pop ecx
pop ecx
mov bl, byte [eax + 4]
mov esi, dword [eax]
mov byte [eax + 4], 0
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x3c], bl
cmp byte [ebp - 0x2c], 0
mov byte [ebp - 4], 5
je 0x4428ea
push dword [ebp - 0x30]
mov byte [ebp - 0x2c], 0
call fcn.0047a1e5
pop ecx
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0x132
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push dword [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
push esi
call fcn.00463479
add esp, 0xc
push eax
call fcn.004424bc
add esp, 0xc
mov byte [ebp - 4], 6
test bl, bl
je 0x4429a4
push esi
call fcn.0047a1e5
jmp 0x4429a3
lea eax, [ebp - 0x38]
push eax
push 0x48fcc0
lea eax, [ebp - 0x30]
push edi
push eax
call fcn.00448f4c
add esp, 0x10
mov bl, byte [eax + 4]
mov esi, dword [eax]
mov byte [eax + 4], 0
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x3c], bl
cmp byte [ebp - 0x2c], 0
mov byte [ebp - 4], 9
je 0x442967
push dword [ebp - 0x30]
mov byte [ebp - 0x2c], 0
call fcn.0047a1f1
pop ecx
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, dword [ebp - 0x28]
push 1
push dword [ebp - 0x18]
mov byte [ebp - 4], 8
push eax
call fcn.00460306
push dword [ebp - 0x34]
push 0x132
push eax
push 1
call fcn.0044246f
add esp, 0x20
mov byte [ebp - 4], 0xa
test bl, bl
je 0x4429a4
push esi
call fcn.0047a1f1
pop ecx
cmp byte [ebp - 0x34], 0
mov byte [ebp - 4], 0xb
je 0x4429bb
push dword [ebp - 0x38]
mov byte [ebp - 0x34], 0
call fcn.0047a1f1
pop ecx
lea ecx, [ebp - 0x28]
call fcn.004063d7
lea ecx, [ebp - 0xd8]
call fcn.004045d2
call fcn.00450e8a
ret 4

Function at 0x4485d1
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
add eax, 0x18
cmp dword [eax + 0x14], 8
jb 0x4485e0
mov eax, dword [eax]
push eax
call fcn.004653e4
pop ecx
ret
Function at 0x449702
Capabilities:
Read file on windows

Disassembly:
push 0x2c
mov eax, 0x4840ae
call fcn.00450ea8
push 0x49073c
push dword [ebp + 0xc]
lea eax, [ebp - 0x20]
xor ebx, ebx
push eax
call fcn.00448ed2
add esp, 0xc
mov cl, byte [eax + 4]
mov edi, dword [eax]
mov byte [ebp - 0xd], cl
mov byte [eax + 4], bl
mov dword [ebp - 0x18], edi
mov byte [ebp - 0x14], cl
xor esi, esi
inc esi
mov dword [ebp - 4], esi
cmp byte [ebp - 0x1c], bl
je 0x44974c
push dword [ebp - 0x20]
mov byte [ebp - 0x1c], bl
call fcn.0047a1f1
pop ecx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0xe]
mov byte [ebp - 4], 2
push eax
push 0x100001
lea ecx, [ebp - 0x24]
call fcn.0041afd1
push edi
push 0x100000
push esi
mov esi, dword [ebp - 0x24]
push esi
call fcn.0045fd00
mov ebx, eax
add esp, 0x10
cmp ebx, 0x100000
ja 0x44981d
push edi
call fcn.0046665e
pop ecx
test eax, eax
je 0x4497a0
push 0x133
jmp 0x449822
push edi
call fcn.00466632
pop ecx
test eax, eax
jne 0x4497b2
push 0x13b
jmp 0x449822
push ebx
push esi
call fcn.00449f89
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xe]
push eax
lea eax, [esi + ebx]
push eax
push esi
call fcn.00419676
test esi, esi
je 0x449800
mov eax, dword [ebp - 0x1c]
sub eax, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], eax
cmp eax, 0x1000
jb 0x4497f7
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004055a1
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
pop ecx
pop ecx
push eax
push esi
call fcn.00450c04
pop ecx
pop ecx
cmp byte [ebp - 0xd], 0
invalid
inc ebp
cld
add eax, dword [eax]
invalid

Function at 0x449fc4
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x23c]
sub esp, 0x23c
push 0xffffffffffffffff
push 0x484221
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, dword [0x4b34c4]
xor eax, ebp
mov dword [ebp + 0x238], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x244]
lea eax, [ebp + 0x30]
push eax
xor edi, edi
mov dword [ebp - 0x10], esi
push edi
push edi
push 0x2c
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push dword [ebp - 0x10]
push 0xc8
push eax
push edi
call fcn.0044246f
add esp, 0x10
lea eax, [ebp + 0x30]
lea ecx, [ebp]
push eax
call fcn.0041e885
push dword [0x4b346c]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp + 0x18]
push eax
call fcn.0043dee7
push eax
push esi
mov byte [ebp - 4], 1
call fcn.004485e8
add esp, 0x14
lea ecx, [ebp + 0x18]
call fcn.004063fd
lea ecx, [ebp]
call fcn.004063fd
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x238]
xor ecx, ebp
call fcn.00450e68
add ebp, 0x23c
leave
ret
Function at 0x44cea4
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, SysReAllocString
push edi
mov edi, dword [esp + 0x24]
test edi, edi
jl 0x44cf28
jg 0x44ced1
test esi, esi
je 0x44cf28
test edi, edi
jg 0x44ced1
jl 0x44cecd
cmp esi, ebp
jae 0x44ced1
mov eax, esi
jmp 0x44ced3
mov eax, ebp
and dword [esp + 0x1c], 0
cmp dword [esp + 0x14], 0xffffffff
je 0x44cf19
push 0
lea ecx, [esp + 0x20]
push ecx
push eax
push ebx
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x44cf03
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x44cf23
jmp 0x44cf19
mov eax, dword [esp + 0x1c]
test eax, eax
jle 0x44cf14
add ebx, eax
cdq
sub esi, eax
sbb edi, edx
jmp 0x44ceb9
cmp eax, 0xffffffff
jne 0x44cf23
call fcn.0045a27e
cmp dword [eax], 4
je 0x44ceb9
or eax, 0xffffffff
jmp 0x44cf2a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x44ef60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 4]
push 4
pop edx
movzx ecx, al
shr eax, 8
xor eax, dword [ecx*4 + 0x4917a8]
sub edx, 1
jne 0x44ef67
ret

Function at 0x451c95
Capabilities:
Parse pe header

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

Function at 0x46d4b6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046d32c

Function at 0x4712dd
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047125f

Function at 0x474488
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00474105

Function at 0x47a320
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47a34d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47a34d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401102
Capabilities:
Terminate process

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push ecx
sub esp, 0x44
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x18], 0x18
mov eax, dword [ebp - 0x18]
mov eax, dword fs:[eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], 0
jmp 0x40115e
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jne 0x40114d
mov dword [ebp - 0xc], 1
jmp 0x401188
mov dword [esp], 0x3e8
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
call eax
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x586b68
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
lock cmpxchg dword [edx], ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40113c
mov eax, dword [0x586b64]
cmp eax, 1
jne 0x4011a0
mov dword [esp], 0x1f
call fcn.0041ce08
jmp 0x4011d3
mov eax, dword [0x586b64]
test eax, eax
jne 0x4011c9
mov dword [0x586b64], 1
mov dword [esp + 4], 0x589014
mov dword [esp], 0x58900c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x4011d3
mov dword [0x58601c], 1
mov eax, dword [0x586b64]
cmp eax, 1
jne 0x4011fb
mov dword [esp + 4], 0x589008
mov dword [esp], section..CRT
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [0x586b64], 2
cmp dword [ebp - 0xc], 0
jne 0x401217
mov dword [ebp - 0x2c], 0x586b68
mov dword [ebp - 0x30], 0
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x2c]
xchg dword [eax], edx
mov eax, dword [entry1]
test eax, eax
je 0x401241
mov eax, dword [entry1]
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 0
call eax
sub esp, 0xc
call fcn.0040daf1
mov dword [esp], 0x40dc0c
mov eax, dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call eax
sub esp, 4
mov dword [0x5860f4], eax
mov dword [esp], section..text
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.0040d490
mov eax, dword [0x586004]
mov dword [esp + 4], 0x586008
mov dword [esp], eax
call fcn.004013c8
call fcn.0040d2cc
mov eax, dword [0x4d3310]
mov edx, dword [0x58600c]
mov dword [eax], edx
mov ecx, dword [0x58600c]
mov edx, dword [0x586008]
mov eax, dword [0x586004]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.004c9840
mov dword [0x586014], eax
mov eax, dword [0x586018]
test eax, eax
jne 0x4012d0
mov eax, dword [0x586014]
mov dword [esp], eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x58601c]
test eax, eax
jne 0x4012de
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x586014]
mov ecx, dword [ebp - 4]
leave
lea esp, [ecx - 4]
ret
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x5860cc], 1
mov dword [0x5860d0], 1
mov dword [0x5860d4], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret
Function at 0x401d21
Capabilities:
Encode data using xor

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push edi
push esi
push ebx
mov ebx, edx
xor eax, eax
shl ebx, 4
mov esi, eax
mov edi, dword [ebp + 8]
lea ecx, [eax + edx]
and esi, 7
xor cl, byte [edi + esi]
mov byte [ebx + eax + 0x586040], cl
inc eax
cmp eax, 0x10
jne 0x401d30
inc edx
cmp edx, 8
jne 0x401d29
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40d498
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0041cc28
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort

Function at 0x40e06c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40e08b
mov eax, 0
jmp 0x40e0cf
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40e0ae
mov eax, 0
jmp 0x40e0cf
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x40e0ca
mov eax, 0
jmp 0x40e0cf
mov eax, 1
leave
ret

Function at 0x40e0d1
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x40e130
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x40e128
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x40e128
mov eax, dword [ebp - 4]
jmp 0x40e144
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x40e105
mov eax, 0
leave
ret
Function at 0x41fc38
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
cmp dword [ebp + 8], 0
je 0x41fd00
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0041f3dc
cmp eax, 1
jne 0x41fcf6
mov dword [ebp - 0x3d], 0
mov dword [ebp - 0x39], 0
mov dword [ebp - 0x35], 0
mov dword [ebp - 0x31], 0
mov dword [ebp - 0x2d], 0
mov dword [ebp - 0x29], 0
mov dword [ebp - 0x25], 0
mov dword [ebp - 0x21], 0
mov dword [ebp - 0x1d], 0
mov dword [ebp - 0x19], 0
mov dword [ebp - 0x15], 0
mov dword [ebp - 0x11], 0
mov dword [ebp - 0xd], 0
mov byte [ebp - 9], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], str.Error_cleaning_up_spin_keys_for_thread__lu._n
mov dword [esp + 4], 0x35
lea eax, [ebp - 0x3d]
mov dword [esp], eax
call fcn.004272e0
lea eax, [ebp - 0x3d]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
sub esp, 4
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x41fd01
nop
leave
ret
Function at 0x420c86
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], 0x420af5
mov dword [esp], 0x586b24
call fcn.00420265
mov eax, dword [0x4d3360]
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 0x420ccd
mov eax, dword [ebp - 0x20]
jmp 0x420e18
call fcn.0041fb41
mov dword [ebp - 0x20], eax
mov eax, entry3
test eax, eax
je 0x420ce4
cmp dword [ebp - 0x20], 0
jne 0x420cee
mov eax, 0
jmp 0x420e18
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.0041fc38
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 0x420dc0
call sub.api_ms_win_crt_runtime_l1_1_0.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 [0x4d3360]
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 0x420e15
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x420edc
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.00420c86
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.00420b19
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x20]
and eax, 0x30
test al, al
jne 0x420f37
mov eax, dword [ebp - 0x14]
add eax, 0x70
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.api_ms_win_crt_private_l1_1_0.dll_longjmp]
call eax
mov eax, dword [0x4d3360]
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 0x421061
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x420fc9
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x420f86
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.0041fa4f
mov dword [ebp - 0x10], 0
mov eax, dword [0x4d3360]
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 0x421061
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 0x420ff9
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 0x421061
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.0041fa4f
mov dword [ebp - 0x10], 0
mov eax, dword [0x4d3360]
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.api_ms_win_crt_runtime_l1_1_0.dll__endthreadex]
call eax