joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406749
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x406756
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40678f
cmp eax, 0x80
je 0x40678f
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.00406e12
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x406752
mov al, 1
pop esi
ret

Function at 0x40690d
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x42d008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x118
xor edi, edi
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.00409f70
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.0x406a27.2
mov ebx, dword [ebp - 0x11c]
cmp ebx, 6
je 0x4069b8
cmp ebx, 0xa
je 0x4069b8
cmp ebx, 5
jne case.0x406a27.2
cmp dword [ebp - 0x118], 2
jne 0x4069a1
cmp byte [ebp - 6], 1
jne 0x406983
call fcn.004068c1
cmp eax, 9
je case.0x406a27.1
test dword [ebp - 8], 0x8000
je case.0x406a27.7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004093f2
leave
ret
cmp dword [ebp - 0x118], 1
jne case.0x406a27.2
test dword [ebp - 8], 0x200
jne case.0x406a27.2
xor eax, eax
inc eax
jmp 0x406992
mov eax, dword [ebp - 0x118]
mov ecx, 0x4297b0
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x128], eax
call fcn.00403fdb
mov esi, eax
test esi, esi
je case.0x406a27.2
push str.GetProductInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4069fe
lea ecx, [ebp - 0x124]
push ecx
push edi
push edi
push dword [ebp - 0x128]
push ebx
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je case.0x406a27.2
mov eax, dword [ebp - 0x124]
cmp eax, 0x1b
ja 0x406a36
je case.0x406a27.4
dec eax
cmp eax, 0x18
ja case.0x406a27.2
movzx eax, byte [eax + 0x406a99]
jmp dword [eax*4 + 0x406a89]
push 2
pop eax
jmp 0x406992
cmp eax, 0x54
ja 0x406a56
je case.0x406a27.4
sub eax, 0x30
je case.0x406a27.1
sub eax, 0x16
je case.0x406a27.4
dec eax
sub eax, 1
je case.0x406a27.4
jmp case.0x406a27.2
cmp eax, 0x79
jb case.0x406a27.2
cmp eax, 0x7a
jbe 0x406a84
cmp eax, 0x7c
jbe case.0x406a27.2
cmp eax, 0x7e
jbe case.0x406a27.4
add eax, 0xffffff7f
cmp eax, 1
ja case.0x406a27.2
push 3
jmp 0x406a30
push 4
jmp 0x406a30
Function at 0x405340
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4053f1
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword fs:[0x2c]
mov edi, eax
mov edx, dword [ecx]
mov ecx, dword [0x63502c]
cmp ecx, dword [edx + 4]
jle 0x40539f
push 0x63502c
call fcn.0056c533
add esp, 4
cmp dword [0x63502c], esi
jne 0x40539f
call fcn.004044e0
push 0x63502c
call fcn.0056c4f4
add esp, 4
mov ecx, dword [0x635058]
mov eax, dword [0x63505c]
mov dword [ebp - 0xc], edi
cmp ecx, 0x25c5e09b
jne 0x4053bc
cmp eax, 0x8fafd21e
je 0x4053cb
cmp ecx, 0x257edf0d
jne 0x4053d2
cmp eax, 0xb2ab117a
jne 0x4053d2
test edi, edi
setne al
jmp 0x4053e2
mov eax, dword [0x635050]
mov ecx, 0x635050
push edi
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 8], al
mov dword [ebp - 4], 0x635050
pop edi
test al, al
jne 0x4053f8
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x5fc538
lea ecx, [ebp - 0xc]
call fcn.00405190
int3

Function at 0x405410
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x623fe8]
xor eax, esp
mov dword [esp + 0x194], eax
push 0x635024
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x405452
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x635028
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0056c3d1
mov esp, ebp
pop ebp
ret

Function at 0x4057a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor esi, esi
push 0
push 0xff
call fcn.004055f0
mov byte [esi + edi], al
add esp, 8
inc esi
cmp esi, 8
jb 0x4057b1
xor esi, esi
nop dword [eax + eax]
xor byte [esi + ebx], 0x40
mov eax, esi
and eax, 7
mov ecx, esi
and ecx, 0x1ff
mov dl, byte [eax + edi]
xor dl, byte [esi + ebx]
mov byte [esi + ebx], dl
mov al, byte [eax + edi]
add al, dl
xor al, byte [ecx + 0x5fc128]
sub al, byte [ecx + 0x5fbd28]
add al, byte [ecx + 0x5fb528]
xor al, byte [ecx + 0x5fbb28]
add al, byte [ecx + 0x5fb928]
xor al, byte [ecx + 0x5fb320]
sub al, byte [ecx + 0x5fb728]
sub al, byte [ecx + 0x5fbf28]
mov byte [esi + ebx], al
inc esi
cmp esi, 0x40
jl 0x4057d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, edx
xor esi, esi
push edi
mov edi, ecx
test ebx, ebx
jle 0x4058bf
mov eax, 0x81020409
imul ebx
add edx, ebx
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 4], eax
nop word [eax + eax]
mov ecx, dword [ebp + 8]
mov eax, esi
and eax, 0x1ff
mov dl, byte [eax + 0x5fbf28]
add dl, byte [eax + 0x5fb728]
add dl, byte [esi + edi]
xor dl, byte [eax + 0x5fb320]
sub dl, byte [eax + 0x5fb928]
xor dl, byte [eax + 0x5fbb28]
sub dl, byte [eax + 0x5fb528]
add dl, byte [eax + 0x5fbd28]
xor dl, byte [eax + 0x5fc128]
mov eax, esi
and eax, 7
mov byte [esi + edi], dl
add ecx, eax
mov al, byte [ebp - 4]
add al, al
add al, bl
sub dl, byte [ecx]
mov byte [esi + edi], dl
xor al, dl
xor al, byte [ecx]
mov byte [esi + edi], al
inc esi
cmp esi, ebx
jl 0x405860
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406180
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 1
mov dword [0x6350e0], edi
mov dword [0x6350e4], ecx
nop dword [eax]
push 0x5851f42d
mov edx, ecx
xor eax, eax
push 0x4c957f2d
shr edx, 0x1e
xor eax, ecx
xor edx, edi
push eax
push edx
call fcn.0056cff0
mov edi, eax
mov ecx, edx
mov eax, esi
cdq
add edi, eax
mov dword [esi*8 + 0x6350e0], edi
adc ecx, edx
mov dword [esi*8 + 0x6350e4], ecx
inc esi
cmp esi, 0x138
jl 0x4061a0
pop edi
mov dword [0x6350d8], 0x138
pop esi
pop ebp
ret 0x10
Function at 0x407940
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, edx
mov eax, 0x40
push edi
mov edi, ecx
mov edx, dword [esi]
and edx, 0x3f
mov byte [edx + esi + 0x18], 0x80
inc edx
sub eax, edx
cmp eax, 8
jae 0x407981
push eax
lea eax, [esi + 0x18]
add eax, edx
push 0
push eax
call fcn.00571ca0
push 0x40
lea edx, [esi + 0x18]
mov ecx, esi
call fcn.00406ec0
add esp, 0x10
mov eax, 0x40
xor edx, edx
add eax, 0xfffffff8
push eax
lea eax, [esi + 0x18]
add eax, edx
push 0
push eax
call fcn.00571ca0
shl dword [esi], 3
lea edx, [esi + 0x18]
movzx eax, byte [esi]
mov ecx, esi
mov byte [esi + 0x50], al
mov eax, dword [esi]
shr eax, 8
mov byte [esi + 0x51], al
movzx eax, byte [esi + 2]
mov byte [esi + 0x52], al
movzx eax, byte [esi + 3]
mov byte [esi + 0x53], al
movzx eax, byte [esi + 4]
mov byte [esi + 0x54], al
mov eax, dword [esi + 4]
shr eax, 8
mov byte [esi + 0x55], al
movzx eax, byte [esi + 6]
mov byte [esi + 0x56], al
movzx eax, byte [esi + 7]
push 0x40
mov byte [esi + 0x57], al
call fcn.00406ec0
movzx eax, byte [esi + 8]
mov byte [edi], al
mov eax, dword [esi + 8]
shr eax, 8
mov byte [edi + 1], al
movzx eax, byte [esi + 0xa]
mov byte [edi + 2], al
movzx eax, byte [esi + 0xb]
mov byte [edi + 3], al
movzx eax, byte [esi + 0xc]
mov byte [edi + 4], al
mov eax, dword [esi + 0xc]
shr eax, 8
mov byte [edi + 5], al
movzx eax, byte [esi + 0xe]
mov byte [edi + 6], al
movzx eax, byte [esi + 0xf]
mov byte [edi + 7], al
movzx eax, byte [esi + 0x10]
mov byte [edi + 8], al
mov eax, dword [esi + 0x10]
shr eax, 8
mov byte [edi + 9], al
movzx eax, byte [esi + 0x12]
mov byte [edi + 0xa], al
movzx eax, byte [esi + 0x13]
mov byte [edi + 0xb], al
movzx eax, byte [esi + 0x14]
mov byte [edi + 0xc], al
mov eax, dword [esi + 0x14]
shr eax, 8
mov byte [edi + 0xd], al
movzx eax, byte [esi + 0x16]
push 0x98
mov byte [edi + 0xe], al
movzx eax, byte [esi + 0x17]
push 0
push esi
mov byte [edi + 0xf], al
call fcn.00571ca0
add esp, 0x1c
pop edi
pop esi
ret

Function at 0x407a70
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x623fe8]
xor eax, esp
mov dword [esp + 0xa0], eax
push esi
mov esi, dword [ebp + 8]
push edx
mov edx, ecx
mov dword [esp + 0x14], 0x67452301
lea ecx, [esp + 0xc]
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.00407890
add esp, 4
lea edx, [esp + 8]
mov ecx, esi
call fcn.00407940
mov ecx, dword [esp + 0xa4]
pop esi
xor ecx, esp
call fcn.0056c3d1
mov esp, ebp
pop ebp
ret
Function at 0x407b30
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5acfd2
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x623fe8]
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, edx
mov esi, ecx
mov dword [ebp - 0x2c0], esi
push edi
mov dword [ebp - 0x2bc], 0
lea eax, [ebp - 0x220]
push 0x200
push 1
push eax
mov dword [ebp - 0x2c4], esi
mov dword [ebp - 0x2b0], 0x67452301
mov dword [ebp - 0x2ac], 0xefcdab89
mov dword [ebp - 0x2a8], 0x98badcfe
mov dword [ebp - 0x2a4], 0x10325476
mov dword [ebp - 0x2b8], 0
mov dword [ebp - 0x2b4], 0
call fcn.005785ee
add esp, 0x10
test eax, eax
je 0x407bfd
nop
push eax
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x2b8]
call fcn.00407890
push edi
push 0x200
lea eax, [ebp - 0x220]
push 1
push eax
call fcn.005785ee
add esp, 0x14
test eax, eax
jne 0x407bd0
lea edx, [ebp - 0x2b8]
lea ecx, [ebp - 0x20]
call fcn.00407940
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 0xf
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 0
jb 0x407c31
mov eax, dword [esi]
jmp 0x407c33
mov eax, esi
mov byte [eax], 0
mov dword [ebp - 4], 0
xor edi, edi
mov dword [ebp - 0x2bc], 1
nop dword [eax]
mov bh, byte [ebp + edi - 0x20]
mov ecx, dword [esi + 0x14]
mov al, bh
shr al, 4
cmp al, 0xa
sbb bl, bl
add al, 0x57
and bl, 0xd9
add bl, al
mov eax, dword [esi + 0x10]
cmp eax, ecx
jne 0x407c9e
inc eax
cmp eax, 0xfffffffe
ja 0x407d44
cmp ecx, eax
jae 0x407c89
push dword [esi + 0x10]
mov ecx, esi
push eax
call fcn.00406440
jmp 0x407c9e
test eax, eax
jne 0x407c9e
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x407c99
mov eax, dword [esi]
jmp 0x407c9b
mov eax, esi
mov byte [eax], 0
cmp dword [esi + 0x14], 0x10
jb 0x407ca8
mov ecx, dword [esi]
jmp 0x407caa
mov ecx, esi
mov eax, dword [esi + 0x10]
and bh, 0xf
mov byte [ecx + eax], bl
inc dword [esi + 0x10]
cmp bh, 0xa
mov eax, dword [esi + 0x10]
sbb bl, bl
and bl, 0xd9
add bl, 0x57
mov byte [eax + ecx], 0
add bl, bh
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
cmp eax, ecx
jne 0x407d00
inc eax
cmp eax, 0xfffffffe
ja 0x407d44
cmp ecx, eax
jae 0x407ceb
push dword [esi + 0x10]
mov ecx, esi
push eax
call fcn.00406440
jmp 0x407d00
test eax, eax
jne 0x407d00
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x407cfb
mov eax, dword [esi]
jmp 0x407cfd
mov eax, esi
mov byte [eax], 0
cmp dword [esi + 0x14], 0x10
jb 0x407d0a
mov ecx, dword [esi]
jmp 0x407d0c
mov ecx, esi
mov eax, dword [esi + 0x10]
inc edi
mov byte [ecx + eax], bl
inc dword [esi + 0x10]
mov eax, dword [esi + 0x10]
mov byte [eax + ecx], 0
cmp edi, 0x10
jb 0x407c50
mov eax, esi
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.0056c3d1
mov esp, ebp
pop ebp
ret
push 0x5fb2d4
call fcn.0056d84c
int3
Function at 0x408960
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, edx
mov eax, 0x40
push edi
mov edi, ecx
mov edx, dword [esi]
and edx, 0x3f
mov byte [edx + esi + 0x18], 0x80
inc edx
sub eax, edx
cmp eax, 8
jae 0x4089a1
push eax
lea eax, [esi + 0x18]
add eax, edx
push 0
push eax
call fcn.00571ca0
push 0x40
lea edx, [esi + 0x18]
mov ecx, esi
call fcn.00407ee0
add esp, 0x10
mov eax, 0x40
xor edx, edx
add eax, 0xfffffff8
push eax
lea eax, [esi + 0x18]
add eax, edx
push 0
push eax
call fcn.00571ca0
shl dword [esi], 3
lea edx, [esi + 0x18]
movzx eax, byte [esi]
mov ecx, esi
mov byte [esi + 0x50], al
mov eax, dword [esi]
shr eax, 8
mov byte [esi + 0x51], al
movzx eax, byte [esi + 2]
mov byte [esi + 0x52], al
movzx eax, byte [esi + 3]
mov byte [esi + 0x53], al
movzx eax, byte [esi + 4]
mov byte [esi + 0x54], al
mov eax, dword [esi + 4]
shr eax, 8
mov byte [esi + 0x55], al
movzx eax, byte [esi + 6]
mov byte [esi + 0x56], al
movzx eax, byte [esi + 7]
push 0x40
mov byte [esi + 0x57], al
call fcn.00407ee0
movzx eax, byte [esi + 8]
mov byte [edi], al
mov eax, dword [esi + 8]
shr eax, 8
mov byte [edi + 1], al
movzx eax, byte [esi + 0xa]
mov byte [edi + 2], al
movzx eax, byte [esi + 0xb]
mov byte [edi + 3], al
movzx eax, byte [esi + 0xc]
mov byte [edi + 4], al
mov eax, dword [esi + 0xc]
shr eax, 8
mov byte [edi + 5], al
movzx eax, byte [esi + 0xe]
mov byte [edi + 6], al
movzx eax, byte [esi + 0xf]
mov byte [edi + 7], al
movzx eax, byte [esi + 0x10]
mov byte [edi + 8], al
mov eax, dword [esi + 0x10]
shr eax, 8
mov byte [edi + 9], al
movzx eax, byte [esi + 0x12]
mov byte [edi + 0xa], al
movzx eax, byte [esi + 0x13]
mov byte [edi + 0xb], al
movzx eax, byte [esi + 0x14]
mov byte [edi + 0xc], al
mov eax, dword [esi + 0x14]
shr eax, 8
mov byte [edi + 0xd], al
movzx eax, byte [esi + 0x16]
push 0x98
mov byte [edi + 0xe], al
movzx eax, byte [esi + 0x17]
push 0
push esi
mov byte [edi + 0xf], al
call fcn.00571ca0
add esp, 0x1c
pop edi
pop esi
ret
Function at 0x4118b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5adb78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x623fe8]
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 ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x4119de
cmp byte [ebx + 0x3d], 0
je 0x4119de
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x411909
xor al, al
jmp 0x4119e0
push 0
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00405c50
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x14]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x38]
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea esi, [ebp - 0x28]
cmovae esi, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x41196f
sub eax, 1
je 0x411973
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x4119c6
xor bl, bl
jmp 0x4119c8
mov byte [ebx + 0x3d], 0
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 0x28]
cmp ecx, 0x10
mov esi, dword [ebp - 0x2c]
cmovae eax, edx
sub esi, eax
je 0x4119a8
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0057915d
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x41196b
cmp byte [ebx + 0x3d], 0
je 0x4119c6
test esi, esi
jne 0x411931
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00406390
jmp 0x41192e
mov bl, 1
cmp ecx, 0x10
jb 0x4119da
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.004061f0
mov al, bl
jmp 0x4119e0
mov al, 1
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.0056c3d1
mov esp, ebp
pop ebp
ret

Function at 0x413750
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x6350ac
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push dword [esi + 4]
test eax, eax
je 0x41379f
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov esp, ebp
pop ebp
ret
push 0x404000
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x413b60
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5adf59
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x623fe8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [esi], 0x5fd464
mov dword [esi + 0x14], 0
lea ebx, [esi + 0x18]
mov dword [esi + 0x1c], 0
mov dword [ebx], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
call fcn.00414870
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x38]
mov dword [esi + 0x34], 0
call fcn.00413360
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0xffffffff
mov dword [esi + 0x60], 0
push 0xffffffffffffffff
push 0
push 0
push 0xffffffffffffffff
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [esi + 0x14], eax
test eax, eax
jne 0x413ce8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword fs:[0x2c]
mov edi, eax
mov edx, dword [ecx]
mov ecx, dword [0x63502c]
cmp ecx, dword [edx + 4]
jle 0x413c8a
push 0x63502c
call fcn.0056c533
add esp, 4
cmp dword [0x63502c], 0xffffffff
jne 0x413c8a
call fcn.004044e0
push 0x63502c
call fcn.0056c4f4
add esp, 4
mov ecx, dword [0x635058]
mov eax, dword [0x63505c]
mov dword [ebp - 0x1c], edi
cmp ecx, 0x25c5e09b
jne 0x413ca7
cmp eax, 0x8fafd21e
je 0x413cb6
cmp ecx, 0x257edf0d
jne 0x413cbd
cmp eax, 0xb2ab117a
jne 0x413cbd
test edi, edi
setne al
jmp 0x413ccd
mov eax, dword [0x635050]
mov ecx, 0x635050
push edi
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], 0x635050
test al, al
je 0x413ce8
mov edx, 0x5fd4f8
lea ecx, [ebp - 0x1c]
call fcn.00405190
cmp byte [ebp + 0x10], 0
je 0x413d37
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0xc
call fcn.00436213
add esp, 4
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x413d17
push ecx
push esi
mov ecx, eax
call fcn.00414cd0
mov ebx, eax
jmp 0x413d19
xor ebx, ebx
mov edi, dword [esi + 0x60]
test edi, edi
je 0x413d34
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push edi
call fcn.0056c8c2
add esp, 8
mov dword [esi + 0x60], ebx
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 0x414110
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5adfc0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x623fe8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0
lea eax, [esi + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
test eax, eax
jne 0x4141c2
mov ecx, esi
call fcn.00414310
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x20], 0
mov ecx, dword [eax]
mov eax, dword [0x63502c]
cmp eax, dword [ecx + 4]
jle 0x414199
push 0x63502c
call fcn.0056c533
add esp, 4
cmp dword [0x63502c], 0xffffffff
jne 0x414199
call fcn.004044e0
push 0x63502c
call fcn.0056c4f4
add esp, 4
mov eax, dword [ebp + 8]
movq xmm0, qword [ebp - 0x24]
movq qword [eax], xmm0
mov dword [eax + 8], 0x635050
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push eax
call fcn.0056f712
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov ecx, esi
mov dword [ebp - 4], 0
push dword [0x63646c]
neg ecx
lea eax, [esi + 0x14]
sbb ecx, ecx
and ecx, eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push eax
push dword [0x63646c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push ebx
push eax
push ecx
mov ecx, esi
mov byte [ebp - 4], 1
xor edi, edi
call fcn.00414380
test eax, eax
je 0x41425c
nop
cmp edi, 0xffffffff
lea eax, [edi + 1]
push ebx
cmove eax, edi
mov edi, eax
lea eax, [ebp - 0x3c]
push eax
push ecx
mov ecx, esi
call fcn.00414380
test eax, eax
jne 0x414240
push dword [ebp - 0x10]
push dword [0x63646c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov eax, dword [ebp + esi*4 - 0x3c]
test eax, eax
je 0x414285
push eax
call fcn.00436253
add esp, 4
inc esi
cmp esi, 3
jl 0x414274
lea eax, [ebp - 0x2c]
push eax
call fcn.0056f752
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x415a50
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, edx
lea ebx, [esi + 3]
shr ebx, 2
test ecx, ecx
je 0x415962
mov eax, dword [ecx]
test eax, eax
je 0x415962
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jb 0x415959
mov byte [eax + esi], dl
pop esi
pop ebx
ret
push eax
call fcn.00436253
add esp, 4
lea eax, [ebx*4 + 1]
push eax
call fcn.00436213
add esp, 4
mov ecx, eax
cmp ebx, 0xff
ja 0x415987
movzx eax, bl
mov byte [ecx + esi], al
mov eax, ecx
pop esi
pop ebx
ret
xor eax, eax
mov byte [ecx + esi], al
mov eax, ecx
pop esi
pop ebx
ret
push ebp
mov ebp, esp
push dword [0x63646c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x415a6f
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 8]
pop ebp
jmp 0x415930
xor ecx, ecx
mov edx, dword [ebp + 8]
pop ebp
jmp 0x415930

Function at 0x415a80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x63646c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x415a98
mov edx, dword [eax + 4]
jmp 0x415a9a
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0x3fc
ja 0x415ab9
test edx, edx
je 0x415ab9
cmp dword [edx], 0
jne 0x415ab9
mov ecx, dword [ebp + 8]
mov al, byte [ecx + eax]
mov byte [ecx], al
mov dword [edx], ecx
pop ebp
ret
push dword [ebp + 8]
call fcn.00436253
add esp, 4
pop ebp
ret

Function at 0x416100
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x63646c]
mov esi, ecx
lea eax, [esi + 0x14]
neg esi
sbb esi, esi
and esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41612b
nop dword [eax]
cmp dword [eax], esi
je 0x41612d
mov eax, dword [eax + 8]
test eax, eax
jne 0x416120
pop esi
ret
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41612b
pop esi
jmp fcn.004159a0