joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4604d2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x4604ec
mov edi, dword [esi + 0xc]
jmp 0x46052c
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x460505
call fcn.0044569f
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x46051a
call fcn.0044569f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x46052c
call fcn.0044569f
call fcn.0044a3fc
cmp dword [eax + 0x3c], 0
je 0x460541
push edi
mov ecx, ebx
call fcn.0045fc0b
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0046071e
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x46056a
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x460576
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x478c27
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.00441f6a
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x478c63
call fcn.00478e49
mov dword [esi + 0xc], 1
jmp 0x478c68
call fcn.00478e49
cmp dword [esi], 0
je 0x478cb1
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x478c8b
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0043cb5f
jmp 0x478c9c
push 0xff
mov ecx, esi
call fcn.00423670
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00422d00
jmp 0x478cd5
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x478cd5
push dword [esi]
push dword [ebp - 4]
call fcn.0045e6c0
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x478d9e
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00478e49
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x478de6
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0043cb5f
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00422d00
jmp 0x478df1
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.0045e6c0
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x48ac30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x48ac49
call fcn.0044a3fc
mov esi, dword [eax + 0xc]
push 0x5c2440
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x48ac9f
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x48ac9e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x48ac7f
xor esi, esi
jmp 0x48ac95
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.0048aca7
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4f88f6
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005641d8
call fcn.0044a450
cmp dword [eax + 0x14], 0
jne 0x4f8911
mov ecx, esi
pop esi
jmp fcn.004f7c41
pop esi
ret

Function at 0x52487e
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00405680
call fcn.0044a450
cmp dword [eax + 0x14], 0
jne 0x524899
mov ecx, esi
pop esi
jmp fcn.005240fc
pop esi
ret

Function at 0x599a22
Capabilities:
Read file on windows

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

Function at 0x59f2b2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0059ef72
Function at 0x403510
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x43c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x40ccf0
mov esi, 0x200
lea eax, [ebp - 0x18]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 2
mov dword [ebp - 0x2c], 0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x30], 0
cmp esi, 0x201
jae 0x4035a0
jmp 0x40358e
jbe 0x403634
cmp esi, 0x201
jae 0x4035a0
mov dword [ebp - 0x28], 0x200
lea ebx, [ebp - 0x448]
mov edi, esi
jmp 0x4035db
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
sub esi, edi
sub eax, edi
cmp eax, esi
jae 0x4035cc
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x38]
mov edx, edi
push esi
call fcn.004192a0
add esp, 4
mov edi, dword [ebp - 0x38]
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x24], eax
mov ebx, dword [ebp - 0x24]
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov esi, eax
test eax, eax
jne 0x4035ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x403697
cmp esi, edi
jne 0x403580
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4036b6
lea esi, [edi + edi]
test edi, edi
mov eax, 0xffffffff
cmovs esi, eax
cmp esi, 0x201
jb 0x40358e
jmp 0x4035a0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x10], 0
cmp esi, eax
ja 0x4036d3
lea eax, [ebp - 0x48]
push esi
push ebx
push eax
call fcn.00405820
add esp, 0xc
movsd xmm0, qword [ebp - 0x48]
mov esi, dword [ebp + 8]
movsd xmm1, qword [ebp - 0x40]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x403681
add eax, eax
push 2
push eax
push dword [ebp - 0x24]
call fcn.004010b0
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x43c
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov byte [esi + 4], 0
mov dword [esi + 8], eax
mov dword [esi], 0x80000000
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x403671
jmp 0x403681
mov dword [ebp - 0x10], 0
push 0x41cdbc
push 0x28
push str.internal_error:_entered_unreachable_code_rustc_07dca489ac2d933c78d3c5158e3f43beefeb02celibrary_alloc_src_vecmod.rst
call fcn.00419d30
add esp, 0xc
jmp 0x4036e2
push 0x41cdac
push eax
push esi
call fcn.0041a0b0
add esp, 0xc
ud2
Function at 0x40a040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov esi, ecx
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 0x10], 0
mov edi, edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x103
je 0x40a084
mov eax, dword [ebp + 0x1c]
mov ebx, dword [ebp + 0x18]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], eax
xor eax, eax
mov ebx, 1
jmp 0x40a08a
xor ebx, ebx
xor eax, eax
xor edx, edx
mov dword [esp + 0x1c], eax
lea eax, [esp + 8]
mov dword [esp + 0x18], ebx
push 0
push edx
push ecx
push dword [ebp + 8]
push eax
push 0
push 0
push 0
push edi
call dword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x40a0c6
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
cmp eax, 0x103
je 0x40a0eb
test eax, eax
js 0x40a0d5
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov al, 4
jmp 0x40a0e1
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [esi + 4], eax
xor eax, eax
mov byte [esi], al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 4]
mov dword [esp + 0x18], 0x41c88c
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x10], 0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x10]
lea edx, [esp + 0x34]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x24], 0
push eax
push ecx
push edx
call fcn.00405430
add esp, 0xc
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
call fcn.00401a70
mov ecx, 7
int 0x29
ud2
Function at 0x40b220
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x40cf80
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
movzx eax, byte [0x4221d4]
test al, al
je 0x40b3f1
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x40b26c
cmp eax, 3
jne 0x40b3ea
mov ebx, dword [0x4221d8]
test ebx, ebx
je 0x40b3ea
mov dword [ebp - 0x20], 0
jmp 0x40b297
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40b2c8
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40b43b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40b290
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x40b290
test byte [ebp - 0x20], 1
je 0x40b3ea
mov ebx, dword [0x4221d8]
test ebx, ebx
je 0x40b3ea
mov dword [ebp - 0x20], 0
jmp 0x40b2f7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40b328
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40b43b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40b2f0
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x40b2f0
test byte [ebp - 0x20], 1
je 0x40b3ea
mov ebx, dword [0x4221d8]
test ebx, ebx
je 0x40b3ea
mov dword [ebp - 0x20], 0
jmp 0x40b357
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40b388
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40b43b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40b350
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x40b350
test byte [ebp - 0x20], 1
je 0x40b3ea
mov ebx, dword [0x4221d8]
test ebx, ebx
je 0x40b3ea
mov dword [ebp - 0x20], 0
jmp 0x40b3b7
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40b3e4
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40b43b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40b3b0
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
mov al, 1
mov dword [ebp - 0x20], eax
jmp 0x40b3b0
test byte [ebp - 0x20], 1
jne 0x40b404
movzx eax, byte [0x41f1c0]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
mov ebx, dword [0x4221d8]
jmp 0x40b40f
mov ebx, dword [ebx + 8]
test ebx, ebx
je 0x40b3ea
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
test edi, edi
je 0x40b43b
dec esi
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40b40c
push 0
push esi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
call edi
add esp, 4
jmp 0x40b40c
mov dword [ebp - 0x10], 0
push 0x41cd00
push 0x2b
push 0x41b2b0
call fcn.00419d30
add esp, 0xc
ud2
Function at 0x40c7d0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x422038]
mov esi, ecx
test eax, eax
je 0x40c7f6
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x40c80f
cmp dword [eax + 4], 0
je 0x40c80f
add eax, 8
pop esi
pop edi
ret
push 0x422038
call fcn.004195d0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x40c7ea
mov eax, dword [0x422038]
test eax, eax
je 0x40c8a6
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x40c8c3
mov edi, eax
test eax, eax
jne 0x40c86f
movzx eax, byte [0x422161]
push 4
push 0x10
call fcn.004010a0
add esp, 8
test eax, eax
je 0x40c8d7
mov dword [eax], 0x422038
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x422038]
test eax, eax
je 0x40c8c8
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x40c88f
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0
mov dword [esi], 0
cmp eax, 1
jne 0x40c893
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
jmp 0x40c893
xor ecx, ecx
xor edx, edx
lea eax, [edi + 8]
mov dword [edi + 4], 1
mov dword [edi + 8], ecx
mov byte [edi + 0xc], dl
pop esi
pop edi
ret
push 0x422038
call fcn.004195d0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x40c82d
xor eax, eax
pop esi
pop edi
ret
push 0x422038
call fcn.004195d0
add esp, 4
jmp 0x40c867
push 0x10
push 4
call fcn.00419b90

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

Disassembly:
push edi
push esi
sub esp, 8
mov eax, dword [0x422048]
mov esi, ecx
test eax, eax
je 0x40c9ba
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x40c90d
cmp dword [eax + 4], 0
mov edi, eax
jne 0x40c9b5
mov eax, dword [0x422048]
test eax, eax
je 0x40c9dc
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x40c9f9
mov edi, eax
test eax, eax
jne 0x40c971
movzx eax, byte [0x422161]
push 4
push 0xc
call fcn.004010a0
add esp, 8
test eax, eax
je 0x40ca15
mov dword [eax], 0x422048
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x422048]
test eax, eax
je 0x40ca03
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x40c986
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
je 0x40c988
mov eax, dword [esi + 4]
jmp 0x40c988
xor eax, eax
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
test edx, edx
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [edi + 4], 1
mov dword [edi + 8], eax
je 0x40c9b5
test ecx, ecx
je 0x40c9b5
lock dec dword [ecx]
jne 0x40c9b5
lea ecx, [esp + 4]
call fcn.00402690
add edi, 8
jmp 0x40c9fb
push 0x422048
call fcn.004195d0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x40c901
jmp 0x40c90d
push 0x422048
call fcn.004195d0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x40c92b
xor edi, edi
mov eax, edi
add esp, 8
pop esi
pop edi
ret
push 0x422048
call fcn.004195d0
add esp, 4
jmp 0x40c969
push 0xc
push 4
call fcn.00419b90
int3
Function at 0x40ca20
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x422058]
mov esi, ecx
test eax, eax
je 0x40ca46
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x40ca5f
cmp byte [eax + 4], 0
je 0x40ca5f
add eax, 5
pop esi
pop edi
ret
push 0x422058
call fcn.004195d0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x40ca3a
mov eax, dword [0x422058]
test eax, eax
je 0x40cad2
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x40caeb
mov edi, eax
test eax, eax
jne 0x40cab0
movzx eax, byte [0x422161]
push 4
push 8
call fcn.004010a0
add esp, 8
test eax, eax
je 0x40caff
mov dword [eax], 0x422058
mov byte [eax + 4], 0
mov edi, eax
mov eax, dword [0x422058]
test eax, eax
je 0x40caf0
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test esi, esi
je 0x40cac5
cmp byte [esi], 0
mov byte [esi], 0
movzx eax, byte [esi + 1]
cmove eax, ecx
mov ecx, eax
lea eax, [edi + 5]
mov byte [edi + 4], 1
mov byte [edi + 5], cl
pop esi
pop edi
ret
push 0x422058
call fcn.004195d0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x40ca75
xor eax, eax
pop esi
pop edi
ret
push 0x422058
call fcn.004195d0
add esp, 4
jmp 0x40caa8
push 8
push 4
call fcn.00419b90
int3

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

Disassembly:
push edi
push esi
sub esp, 8
mov eax, dword [0x422068]
mov esi, ecx
test eax, eax
je 0x40cbea
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jb 0x40cb3d
cmp dword [eax + 4], 0
mov edi, eax
jne 0x40cbe5
mov eax, dword [0x422068]
test eax, eax
je 0x40cc0c
dec eax
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x40cc29
mov edi, eax
test eax, eax
jne 0x40cba1
movzx eax, byte [0x422161]
push 4
push 0xc
call fcn.004010a0
add esp, 8
test eax, eax
je 0x40cc45
mov dword [eax], 0x422068
mov dword [eax + 4], 0
mov edi, eax
mov eax, dword [0x422068]
test eax, eax
je 0x40cc33
dec eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x40cbb6
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
je 0x40cbb8
mov eax, dword [esi + 4]
jmp 0x40cbb8
xor eax, eax
mov edx, dword [edi + 4]
mov ecx, dword [edi + 8]
test edx, edx
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [edi + 4], 1
mov dword [edi + 8], eax
je 0x40cbe5
test ecx, ecx
je 0x40cbe5
lock dec dword [ecx]
jne 0x40cbe5
lea ecx, [esp + 4]
call fcn.00402630
add edi, 8
jmp 0x40cc2b
push 0x422068
call fcn.004195d0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 2
jae 0x40cb31
jmp 0x40cb3d
push 0x422068
call fcn.004195d0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x40cb5b
xor edi, edi
mov eax, edi
add esp, 8
pop esi
pop edi
ret
push 0x422068
call fcn.004195d0
add esp, 4
jmp 0x40cb99
push 0xc
push 4
call fcn.00419b90
int3
Function at 0x4176e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x417738
mov esi, dword [esp + 0x18]
lea edi, [edx + eax*2]
xor ebx, ebx
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea ebp, [ebx + eax]
jne 0x417730
cmp ebx, ebp
ja 0x4177ad
cmp ebp, dword [esp + 0x1c]
ja 0x4177b9
add ebx, esi
nop word [eax + eax]
test eax, eax
je 0x417732
dec eax
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x417720
jmp 0x41778f
ja 0x417738
cmp edx, edi
mov ebx, ebp
jne 0x4176f5
mov edx, dword [esp + 0x24]
test edx, edx
je 0x417793
mov esi, dword [esp + 0x20]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax + eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x417770
mov esi, edi
sub ecx, ebx
jns 0x417787
jmp 0x417795
cmp edi, edx
je 0x41779c
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x417795
xor al, 1
cmp esi, edx
jne 0x417750
jmp 0x417795
xor eax, eax
jmp 0x417795
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x41e618
push 0x2b
push 0x41debb
call fcn.00419d30
push 0x41e628
push ebp
push ebx
call fcn.0041a120
push 0x41e628
push dword [esp + 0x20]
push ebp
call fcn.0041a0b0
int3

Function at 0x418b91
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x418bd0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x418bd0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x418bd0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x418bd0
cmp dword [ecx + 0x74], 0xe
jbe 0x418bd0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4195d0
Capabilities:
Allocate thread local storage

Disassembly:
push ebx
push edi
push esi
sub esp, 0x20
mov edi, dword [esp + 0x30]
cmp dword [edi + 4], 0
je 0x419651
lea ebx, [edi + 0xc]
mov dword [esp + 4], 0
lea eax, [esp + 4]
push 0
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceBeginInitialize]
cmp eax, 1
mov dword [esp], eax
jne 0x41968c
cmp dword [esp + 4], 0
je 0x419673
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x4196aa
mov esi, eax
inc eax
mov dword [edi], eax
mov eax, dword [0x4221d8]
nop word [eax + eax]
mov dword [edi + 8], eax
lock cmpxchg dword [0x4221d8], edi
jne 0x419630
mov byte [0x4221d4], 1
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
jmp 0x419683
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esp], eax
je 0x4196ec
mov ecx, eax
xor eax, eax
inc ecx
lock cmpxchg dword [edi], ecx
jne 0x419677
mov esi, dword [esp]
jmp 0x419683
mov esi, dword [edi]
jmp 0x419682
mov esi, eax
push dword [esp]
call dword [sym.imp.KERNEL32.dll_TlsFree]
dec esi
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebx
ret
mov dword [esp + 8], 0
lea eax, [esp + 8]
mov ecx, esp
mov edx, 0x41cc7c
push 0x41ccdc
push eax
call fcn.004191b0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_InitOnceComplete]
mov dword [esp + 8], 0x41cc94
mov dword [esp + 0xc], 1
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0x41b2dc
mov dword [esp + 0x14], 0
lea eax, [esp + 8]
push 0x41cccc
push eax
call fcn.00419c50
mov ecx, esp
lea edx, [esp + 8]
mov dword [esp + 8], 0x41cc94
mov dword [esp + 0xc], 1
mov dword [esp + 0x10], 0x41b2dc
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
call fcn.00419180
int3
Function at 0x419e40
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push edi
push esi
sub esp, 0x68
movzx eax, byte [esp + 0x78]
mov esi, dword [esp + 0x84]
mov ebx, dword [esp + 0x7c]
mov ecx, dword [esp + 0x8c]
mov edx, dword [esp + 0x88]
mov edi, dword [esp + 0x80]
test eax, eax
mov dword [esp + 8], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edi
mov dword [esp + 0x14], edx
je 0x419e91
cmp eax, 1
jne 0x419f0e
mov dword [esp], 0x41e07c
jmp 0x419e98
mov dword [esp], 0x41e07a
mov edx, 2
mov eax, dword [esp + 0x90]
cmp dword [ecx], 0
mov dword [esp + 4], edx
jne 0x419f2a
mov ecx, esp
lea edx, [esp + 8]
lea esi, [esp + 0x10]
mov dword [esp + 0x38], 0x41e0b8
mov dword [esp + 0x3c], 3
mov dword [esp + 0x48], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0x418280
mov dword [esp + 0x20], edx
lea edx, [esp + 0x18]
mov dword [esp + 0x24], 0x418260
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0x418260
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 3
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00419c50
mov edx, 7
mov dword [esp], 0x41e07e
mov eax, dword [esp + 0x90]
cmp dword [ecx], 0
mov dword [esp + 4], edx
je 0x419ead
movsd xmm0, qword [ecx + 0x10]
movsd xmm2, qword [ecx]
movsd xmm1, qword [ecx + 8]
mov edx, esp
lea esi, [esp + 0x50]
mov dword [esp + 0x38], 0x41e0ec
mov dword [esp + 0x3c], 4
mov dword [esp + 0x48], 0
mov dword [esp + 0x18], edx
lea edx, [esp + 8]
mov dword [esp + 0x1c], 0x418280
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0x415390
lea esi, [esp + 0x10]
mov dword [esp + 0x28], edx
lea edx, [esp + 0x18]
mov dword [esp + 0x2c], 0x418260
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], 0x418260
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], 4
movsd qword [esp + 0x60], xmm0
movsd qword [esp + 0x58], xmm1
movsd qword [esp + 0x50], xmm2
lea ecx, [esp + 0x38]
push eax
push ecx
call fcn.00419c50
int3