joyce8/EMBER2024-capa huggingface dataset:
Function at 0x102ae320
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x80
mov esi, esp
mov eax, 0x10
call fcn.102ac4c0
mov eax, esp
and eax, 0xfffffff8
mov esp, eax
mov dword [0x102c6a94], 0x1594
mov dword [esi + 0x24], eax
call fcn.10001090
xor ecx, ecx
cmp eax, 0
mov dword [esi + 0x20], ecx
je 0x102ae37f
jmp 0x102ae4b0
mov eax, dword [esi + 0x1c]
add eax, 0xfffff000
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x18]
and eax, 0xfffff000
mov dword [esi + 0x14], eax
jmp 0x102ae41b
lea eax, [esi + 0x28]
mov dword [0x102c6a98], 0x1aa1
mov dword [0x102c6a94], 0x17ad
mov dword [esi + 0x10], eax
call fcn.102ad860
xor ecx, ecx
cmp eax, 0
mov dword [esi + 0xc], ecx
jne 0x102ae4aa
sub esp, 4
mov eax, dword [esi + 0x24]
mov dword [esp], eax
call fcn.102adab0
add esp, 4
lea ecx, [0x102ac770]
mov edx, dword [esi + 0x24]
mov edi, dword [edx]
mov dword [esi + 0x5c], edi
mov dword [0x102c6a98], 0x1364
mov dword [esi + 0x68], 0x12b200
mov edi, dword [0x102c6a80]
mov dword [esi + 0x54], edi
mov edi, dword [0x102c6a84]
mov dword [esi + 0x3c], edi
mov edi, dword [0x102c6a88]
mov dword [esi + 0x58], edi
mov edi, dword [0x102c6a8c]
mov dword [esi + 0x40], edi
mov edi, dword [0x102c6a90]
mov dword [esi + 0x2c], edi
mov dword [0x102c6a94], 0x423
mov dword [esi + 8], eax
mov dword [esi + 0x14], ecx
mov eax, dword [esi + 0x14]
cmp word [eax], 0x5a4d
mov dword [esi + 0x1c], eax
jne 0x102ae364
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esi + 4], eax
mov dword [esi], ecx
jne 0x102ae364
mov eax, dword [esi + 4]
mov ecx, dword [esi]
lea edx, [esi + 0x28]
mov dword [esi + 0x74], eax
mov dword [0x102c6a98], 0x2099
mov eax, dword [eax + ecx + 0x50]
mov dword [esi + 0x38], eax
mov dword [0x102c6a94], 0xa15
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 8]
push ecx
push edx
call fcn.102ad3f0
add esp, 8
mov ecx, dword [0x102c6a94]
add ecx, 0xbd7
mov dword [0x102c6a94], ecx
sub esp, 4
mov ecx, esp
lea edx, [esi + 0x28]
mov dword [ecx], edx
call eax
mov eax, 1
mov dword [0x102c6a94], 0x1824
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x20]
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x405d50
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 0x405e01
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword fs:[0x2c]
mov edi, eax
mov edx, dword [ecx]
mov ecx, dword [0x652a58]
cmp ecx, dword [edx + 4]
jle 0x405daf
push 0x652a58
call fcn.005822ab
add esp, 4
cmp dword [0x652a58], esi
jne 0x405daf
call fcn.00404ef0
push 0x652a58
call fcn.0058226c
add esp, 4
mov ecx, dword [0x652a80]
mov eax, dword [0x652a84]
mov dword [ebp - 0xc], edi
cmp ecx, 0x25c5e09b
jne 0x405dcc
cmp eax, 0x8fafd21e
je 0x405ddb
cmp ecx, 0x257edf0d
jne 0x405de2
cmp eax, 0xb2ab117a
jne 0x405de2
test edi, edi
setne al
jmp 0x405df2
mov eax, dword [0x652a78]
mov ecx, 0x652a78
push edi
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 8], al
mov dword [ebp - 4], 0x652a78
pop edi
test al, al
jne 0x405e08
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x616b94
lea ecx, [ebp - 0xc]
call fcn.00405ba0
int3

Function at 0x405e20
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x642ff4]
xor eax, esp
mov dword [esp + 0x194], eax
push 0x652a50
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x405e62
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
push 0x652a54
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00582166
mov esp, ebp
pop ebp
ret

Function at 0x4061a0
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.00406000
mov byte [esi + edi], al
add esp, 8
inc esi
cmp esi, 8
jb 0x4061b1
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 + 0x616768]
sub al, byte [ecx + 0x616368]
add al, byte [ecx + 0x615b68]
xor al, byte [ecx + 0x616168]
add al, byte [ecx + 0x615f68]
xor al, byte [ecx + 0x615960]
sub al, byte [ecx + 0x615d68]
sub al, byte [ecx + 0x616568]
mov byte [esi + ebx], al
inc esi
cmp esi, 0x40
jl 0x4061d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406230
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 0x4062bf
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 + 0x616568]
add dl, byte [eax + 0x615d68]
add dl, byte [esi + edi]
xor dl, byte [eax + 0x615960]
sub dl, byte [eax + 0x615f68]
xor dl, byte [eax + 0x616168]
sub dl, byte [eax + 0x615b68]
add dl, byte [eax + 0x616368]
xor dl, byte [eax + 0x616768]
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 0x406260
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406bb0
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 [0x652b28], edi
mov dword [0x652b2c], 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.00582d70
mov edi, eax
mov ecx, edx
mov eax, esi
cdq
add edi, eax
mov dword [esi*8 + 0x652b28], edi
adc ecx, edx
mov dword [esi*8 + 0x652b2c], ecx
inc esi
cmp esi, 0x138
jl 0x406bd0
pop edi
mov dword [0x652b20], 0x138
pop esi
pop ebp
ret 0x10
Function at 0x4083e0
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 0x408421
push eax
lea eax, [esi + 0x18]
add eax, edx
push 0
push eax
call fcn.00588950
push 0x40
lea edx, [esi + 0x18]
mov ecx, esi
call fcn.00407960
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.00588950
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.00407960
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.00588950
add esp, 0x1c
pop edi
pop esi
ret

Function at 0x408510
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x642ff4]
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.00408330
add esp, 4
lea edx, [esp + 8]
mov ecx, esi
call fcn.004083e0
mov ecx, dword [esp + 0xa4]
pop esi
xor ecx, esp
call fcn.00582166
mov esp, ebp
pop ebp
ret
Function at 0x4085d0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4a22
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x642ff4]
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.0058f633
add esp, 0x10
test eax, eax
je 0x40869d
nop
push eax
lea edx, [ebp - 0x220]
lea ecx, [ebp - 0x2b8]
call fcn.00408330
push edi
push 0x200
lea eax, [ebp - 0x220]
push 1
push eax
call fcn.0058f633
add esp, 0x14
test eax, eax
jne 0x408670
lea edx, [ebp - 0x2b8]
lea ecx, [ebp - 0x20]
call fcn.004083e0
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 0x4086d1
mov eax, dword [esi]
jmp 0x4086d3
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 0x40873e
inc eax
cmp eax, 0xfffffffe
ja 0x4087e4
cmp ecx, eax
jae 0x408729
push dword [esi + 0x10]
mov ecx, esi
push eax
call fcn.00406ee0
jmp 0x40873e
test eax, eax
jne 0x40873e
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x408739
mov eax, dword [esi]
jmp 0x40873b
mov eax, esi
mov byte [eax], 0
cmp dword [esi + 0x14], 0x10
jb 0x408748
mov ecx, dword [esi]
jmp 0x40874a
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 0x4087a0
inc eax
cmp eax, 0xfffffffe
ja 0x4087e4
cmp ecx, eax
jae 0x40878b
push dword [esi + 0x10]
mov ecx, esi
push eax
call fcn.00406ee0
jmp 0x4087a0
test eax, eax
jne 0x4087a0
mov dword [esi + 0x10], eax
cmp ecx, 0x10
jb 0x40879b
mov eax, dword [esi]
jmp 0x40879d
mov eax, esi
mov byte [eax], 0
cmp dword [esi + 0x14], 0x10
jb 0x4087aa
mov ecx, dword [esi]
jmp 0x4087ac
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 0x4086f0
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.00582166
mov esp, ebp
pop ebp
ret
push 0x615914
call fcn.0058359a
int3
Function at 0x409400
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 0x409441
push eax
lea eax, [esi + 0x18]
add eax, edx
push 0
push eax
call fcn.00588950
push 0x40
lea edx, [esi + 0x18]
mov ecx, esi
call fcn.00408980
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.00588950
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.00408980
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.00588950
add esp, 0x1c
pop edi
pop esi
ret
Function at 0x414660
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5848
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x642ff4]
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 0x41478e
cmp byte [ebx + 0x3d], 0
je 0x41478e
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x4146b9
xor al, al
jmp 0x414790
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.00406610
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 0x41471f
sub eax, 1
je 0x414723
mov ecx, dword [ebp - 0x14]
sub eax, 2
je 0x414776
xor bl, bl
jmp 0x414778
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 0x414758
push dword [ebx + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x28]
push esi
cmovae eax, edx
push 1
push eax
call fcn.0059031b
mov ecx, dword [ebp - 0x14]
add esp, 0x10
cmp esi, eax
jne 0x41471b
cmp byte [ebx + 0x3d], 0
je 0x414776
test esi, esi
jne 0x4146e1
push esi
push 8
lea ecx, [ebp - 0x28]
call fcn.00406e30
jmp 0x4146de
mov bl, 1
cmp ecx, 0x10
jb 0x41478a
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00406c20
mov al, bl
jmp 0x414790
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.00582166
mov esp, ebp
pop ebp
ret

Function at 0x416430
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 0x652adc
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push dword [esi + 4]
test eax, eax
je 0x41647f
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov esp, ebp
pop ebp
ret
push fcn.004049b0
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 0x416840
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5b89
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x642ff4]
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], 0x617e2c
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.00417550
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.00416040
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 0x4169c8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword fs:[0x2c]
mov edi, eax
mov edx, dword [ecx]
mov ecx, dword [0x652a58]
cmp ecx, dword [edx + 4]
jle 0x41696a
push 0x652a58
call fcn.005822ab
add esp, 4
cmp dword [0x652a58], 0xffffffff
jne 0x41696a
call fcn.00404ef0
push 0x652a58
call fcn.0058226c
add esp, 4
mov ecx, dword [0x652a80]
mov eax, dword [0x652a84]
mov dword [ebp - 0x1c], edi
cmp ecx, 0x25c5e09b
jne 0x416987
cmp eax, 0x8fafd21e
je 0x416996
cmp ecx, 0x257edf0d
jne 0x41699d
cmp eax, 0xb2ab117a
jne 0x41699d
test edi, edi
setne al
jmp 0x4169ad
mov eax, dword [0x652a78]
mov ecx, 0x652a78
push edi
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], 0x652a78
test al, al
je 0x4169c8
mov edx, 0x617ddc
lea ecx, [ebp - 0x1c]
call fcn.00405ba0
cmp byte [ebp + 0x10], 0
je 0x416a17
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0xc
call fcn.0043dbb9
add esp, 4
mov dword [ebp + 0x10], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x4169f7
push ecx
push esi
mov ecx, eax
call fcn.00417e80
mov ebx, eax
jmp 0x4169f9
xor ebx, ebx
mov edi, dword [esi + 0x60]
test edi, edi
je 0x416a14
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xc
push edi
call fcn.0058263a
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 0x416df0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c5bf0
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x642ff4]
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 0x416ea2
mov ecx, esi
call fcn.00416ff0
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x24], 0
mov byte [ebp - 0x20], 0
mov ecx, dword [eax]
mov eax, dword [0x652a58]
cmp eax, dword [ecx + 4]
jle 0x416e79
push 0x652a58
call fcn.005822ab
add esp, 4
cmp dword [0x652a58], 0xffffffff
jne 0x416e79
call fcn.00404ef0
push 0x652a58
call fcn.0058226c
add esp, 4
mov eax, dword [ebp + 8]
movq xmm0, qword [ebp - 0x24]
movq qword [eax], xmm0
mov dword [eax + 8], 0x652a78
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.00585480
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 [0x653eb4]
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 [0x653eb4]
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.00417060
test eax, eax
je 0x416f3c
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.00417060
test eax, eax
jne 0x416f20
push dword [ebp - 0x10]
push dword [0x653eb4]
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 0x416f65
push eax
call fcn.0043dbf0
add esp, 4
inc esi
cmp esi, 3
jl 0x416f54
lea eax, [ebp - 0x2c]
push eax
call fcn.005854c0
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 0x4191d0
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 0x4190e2
mov eax, dword [ecx]
test eax, eax
je 0x4190e2
mov dword [ecx], 0
mov dl, byte [eax]
movzx ecx, dl
cmp ecx, ebx
jb 0x4190d9
mov byte [eax + esi], dl
pop esi
pop ebx
ret
push eax
call fcn.0043dbf0
add esp, 4
lea eax, [ebx*4 + 1]
push eax
call fcn.0043dbb9
add esp, 4
mov ecx, eax
cmp ebx, 0xff
ja 0x419107
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 [0x653eb4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4191ef
mov ecx, dword [eax + 4]
mov edx, dword [ebp + 8]
pop ebp
jmp 0x4190b0
xor ecx, ecx
mov edx, dword [ebp + 8]
pop ebp
jmp 0x4190b0

Function at 0x419200
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push dword [0x653eb4]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x419218
mov edx, dword [eax + 4]
jmp 0x41921a
xor edx, edx
mov eax, dword [ebp + 0xc]
cmp eax, 0x3fc
ja 0x419239
test edx, edx
je 0x419239
cmp dword [edx], 0
jne 0x419239
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.0043dbf0
add esp, 4
pop ebp
ret

Function at 0x419870
Capabilities:
Get thread local storage value

Disassembly:
push esi
push dword [0x653eb4]
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 0x41989b
nop dword [eax]
cmp dword [eax], esi
je 0x41989d
mov eax, dword [eax + 8]
test eax, eax
jne 0x419890
pop esi
ret
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x41989b
pop esi
jmp fcn.00419120