joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401030
Capabilities:
Delete file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [0x84a14c], 0x594
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
push edi
mov dword [ebp - 8], eax
jne 0x40105b
push str.cekokebe_fufelicuceranafuwiw_lacucizudotogojigodecebetuxiy_rahewanabijodurihipetiro_kopedov
call dword [sym.imp.KERNEL32.dll_AddAtomA]
mov ecx, dword [0x42c0d8]
mov edx, dword [0x42c0dc]
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], edx
call fcn.00401020
mov edi, dword [ebp - 0x18]
mov eax, dword [0x42c0e0]
mov ecx, dword [0x42c0e4]
add edi, 0x23f
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
mov ebx, 0x20
mov edi, edi
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov ecx, dword [0x84a14c]
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x401102
push 0
lea edx, [ebp - 0x34]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
push 0
call dword [sym.imp.KERNEL32.dll_SetCommBreak]
xor ecx, ecx
xor eax, eax
lea edx, [ebp - 0x38]
push edx
mov word [ebp - 0x1c], ax
mov word [ebp - 0x1a], cx
mov eax, dword [ebp - 0x1c]
push eax
push ecx
push str.necumo
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
mov eax, dword [ebp - 4]
mov ecx, dword [0x84a14c]
add eax, dword [ebp - 0x20]
mov dword [ebp - 4], eax
cmp ecx, 0xfa9
jne 0x40111c
mov dword [0x84a148], 0xedeb2e40
jmp 0x40113e
cmp ecx, 0x3eb
jne 0x40113e
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov dword [0x849afc], 0
lea ecx, [edi + esi]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0xc]
mov edx, esi
shr edx, cl
mov dword [0x84a144], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
mov edx, dword [ebp - 8]
shl edx, 4
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
nop
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov eax, edx
shr eax, cl
mov ecx, dword [ebp - 4]
add edi, 0x61c88647
mov dword [ebp - 0x18], edi
add eax, dword [ebp - 0x30]
xor eax, dword [ebp - 0x14]
xor ecx, eax
sub esi, ecx
sub ebx, 1
mov dword [ebp - 4], ecx
jne 0x4010a0
cmp dword [0x84a14c], 0xa6d
mov edi, dword [ebp + 8]
mov dword [edi], esi
jne 0x4011f1
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [ebp - 8]
mov dword [edi + 4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4015d0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x84a14c], 0x400
push esi
push edi
jne 0x401615
xor ecx, ecx
xor eax, eax
lea edx, [ebp - 4]
push edx
mov word [ebp - 4], ax
mov word [ebp - 2], cx
mov eax, dword [ebp - 4]
push eax
push ecx
push str.dabuvuwififagazewot
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
lea eax, [ebp - 0x24]
call fcn.004016e0
lea esi, [ebp - 0x24]
call fcn.00401700
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebx, dword [ebp - 4]
xor esi, esi
call edi
cmp esi, 0x2af2ad
jle 0x401633
cmp ebx, 0x787e1485
jne 0x40163c
inc esi
cmp esi, 0x1c5d
jl 0x401621
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
lea ebx, [ebx]
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x206d47
jg 0x40166d
inc esi
cmp esi, 0x4f6a4
jl 0x401650
mov ebx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
push 0
call edi
cmp esi, 0x2b259d
jle 0x40168c
cmp ebx, 0x785074d5
jne 0x401695
inc esi
cmp esi, 0x11915
jl 0x401678
mov ecx, dword [0x42c704]
mov dword [0x84a14c], ecx
call fcn.00401340
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov edi, 0x3078f
pop ebx
cmp dword [0x84a14c], 0x51f
jne 0x4016c4
push 0
push 0
call esi
sub edi, 1
jne 0x4016b2
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x405cdc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42bb84]
jne 0x405ce6
repz ret
jmp fcn.00408155
Function at 0x40780d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402f59
and dword [ebp - 4], 0
cmp dword [0x42d108], 0
mov ebx, eax
jne 0x4078be
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40796f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40796f
push eax
call fcn.00402ee7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42d108], eax
call esi
push eax
call fcn.00402ee7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42d10c], eax
call esi
push eax
call fcn.00402ee7
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42d110], eax
call esi
push eax
call fcn.00402ee7
pop ecx
mov dword [0x42d118], eax
test eax, eax
je 0x4078be
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402ee7
pop ecx
mov dword [0x42d114], eax
mov eax, dword [0x42d114]
cmp eax, ebx
je 0x407916
cmp dword [0x42d118], ebx
je 0x407916
push eax
call fcn.00402f62
push dword [0x42d118]
mov esi, eax
call fcn.00402f62
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x407916
test edi, edi
je 0x407916
call esi
test eax, eax
je 0x40790d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40790d
test byte [ebp - 0xc], 1
jne 0x407916
or dword [ebp + 0x10], 0x200000
jmp 0x40794f
mov eax, dword [0x42d10c]
cmp eax, ebx
je 0x40794f
push eax
call fcn.00402f62
pop ecx
test eax, eax
je 0x40794f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40794f
mov eax, dword [0x42d110]
cmp eax, ebx
je 0x40794f
push eax
call fcn.00402f62
pop ecx
test eax, eax
je 0x40794f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42d108]
call fcn.00402f62
pop ecx
test eax, eax
je 0x40796f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x407971
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..data
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x10b86567
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..text
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x479d2828
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x403511
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [edx]
mov ebp, dword [edx + 8]
mov ebx, dword [edx + 4]
mov esi, ecx
mov ecx, esp
mov edx, eax
call fcn.0040113c
push 0xfffffffffffffff0
pop eax
test eax, eax
je 0x40353d
mov cl, byte [ebp + eax + 0x10]
xor byte [esp + eax + 0x10], cl
inc eax
jmp 0x40352e
mov edi, esp
movdqu xmm0, xmmword [edi]
mov edx, edi
pxor xmm0, xmmword [esi]
aesenc xmm0, xmmword [esi + 0x10]
aesenc xmm0, xmmword [esi + 0x20]
aesenc xmm0, xmmword [esi + 0x30]
aesenc xmm0, xmmword [esi + 0x40]
aesenc xmm0, xmmword [esi + 0x50]
aesenc xmm0, xmmword [esi + 0x60]
aesenc xmm0, xmmword [esi + 0x70]
aesenc xmm0, xmmword [esi + 0x80]
aesenc xmm0, xmmword [esi + 0x90]
aesenc xmm0, xmmword [esi + 0xa0]
aesenc xmm0, xmmword [esi + 0xb0]
aesenc xmm0, xmmword [esi + 0xc0]
aesenc xmm0, xmmword [esi + 0xd0]
aesenclast xmm0, xmmword [esi + 0xe0]
lea esi, [esp + 0x10]
mov ecx, esi
movdqu xmmword [edi], xmm0
call fcn.0040113c
movsd xmm0, qword [esi]
movsd xmm1, qword [esi + 8]
movsd qword [ebp + 8], xmm1
movsd qword [ebp], xmm0
movsd xmm0, qword [edi]
movsd xmm1, qword [edi + 8]
movsd qword [ebx + 8], xmm1
movsd qword [ebx], xmm0
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x403a06
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x34
mov esi, ecx
mov dword [esp + 8], ecx
lea ecx, [esp + 0xc]
mov edi, edx
mov dword [esp + 4], edx
and dword [ecx + 4], 0
xor ebx, ebx
inc ebx
mov dword [ecx], ebx
call fcn.0040384c
lea ecx, [esp + 0x14]
mov dword [esp], eax
mov dword [ecx], ebx
mov dword [ecx + 4], esi
call fcn.0040384c
lea ecx, [esp + 0x1c]
mov ebp, eax
mov dword [ecx], ebx
mov dword [ecx + 4], edi
call fcn.0040384c
mov esi, eax
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x24]
mov dword [ecx], ebx
mov dword [ecx + 4], eax
call fcn.0040384c
lea ecx, [esp + 0x2c]
mov edi, eax
mov dword [ecx], ebx
and dword [ecx + 4], 0
call fcn.0040384c
push ebx
push eax
push edi
push esi
push ebp
push dword [esp + 0x14]
call dword [sym.imp.shell32.dll_ShellExecuteW]
mov ecx, ebx
xor edx, edx
mov esi, eax
call fcn.004e7dcd
mov edx, dword [esp + 0x48]
mov ecx, ebx
call fcn.004e7dcd
mov edx, dword [esp + 4]
mov ecx, ebx
call fcn.004e7dcd
mov edx, dword [esp + 8]
mov ecx, ebx
call fcn.004e7dcd
mov eax, esi
add esp, 0x34
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x403ab6
Capabilities:
Check if file exists

Disassembly:
push edi
push esi
sub esp, 8
mov esi, ecx
mov ecx, esp
mov dword [ecx], 1
mov dword [ecx + 4], esi
call fcn.0040384c
push eax
call dword [sym.imp.shlwapi.dll_PathFileExistsW]
xor ecx, ecx
mov edx, esi
mov edi, eax
inc ecx
call fcn.004e7dcd
mov eax, edi
add esp, 8
pop esi
pop edi
ret
Function at 0x403ae8
Capabilities:
Get common file path

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
mov edi, edx
push 3
pop ebp
mov ecx, esp
mov dword [ecx], ebp
call fcn.0040384c
lea ecx, [esp + 8]
mov ebx, eax
mov dword [ecx], ebp
call fcn.0040384c
push dword [esp + 0x24]
push 0
push eax
push edi
push ebx
call dword [sym.imp.shell32.dll_SHGetFolderPathW]
xor ecx, ecx
test eax, eax
jns 0x403b31
mov ecx, eax
call fcn.004e770a
xor ecx, ecx
mov dword [esi + 4], eax
mov dword [esi + 8], edx
inc ecx
mov dword [esi], ecx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41009b
Capabilities:
Parse pe header

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov esi, edx
mov edi, ecx
push 0x513238
push 0
call fcn.004beea7
pop ecx
pop edx
xor ebp, ebp
cmp byte [eax], 0x4d
jne 0x41018d
mov ecx, edi
mov edx, esi
push 0x513248
push 1
call fcn.004beea7
pop ecx
pop edx
cmp byte [eax], 0x5a
jne 0x41018d
mov ecx, edi
mov edx, esi
push 0x513258
push 0x3c
call fcn.004beea7
pop ecx
pop edx
movzx eax, byte [eax]
mov ecx, edi
mov edx, esi
mov dword [esp], eax
push 0x513268
push 0x3d
call fcn.004beea7
pop ecx
pop edx
movzx ebx, byte [eax]
mov ecx, edi
mov edx, esi
push 0x513278
push 0x3e
call fcn.004beea7
pop ecx
pop edx
movzx ebp, byte [eax]
mov ecx, edi
mov edx, esi
push 0x513288
push 0x3f
call fcn.004beea7
pop ecx
pop edx
shl ebx, 8
movzx eax, byte [eax]
shl ebp, 0x10
mov ecx, edi
mov edx, esi
add ebx, dword [esp]
or ebp, ebx
mov ebx, eax
shl ebx, 0x18
or ebx, ebp
push 0x513298
push ebx
call fcn.004beea7
pop ecx
pop edx
cmp byte [eax], 0x50
jne 0x41018b
lea eax, [ebx + 1]
mov ecx, edi
mov edx, esi
push 0x5132a8
push eax
call fcn.004beea7
pop ecx
pop edx
cmp byte [eax], 0x45
jne 0x41018b
lea eax, [ebx + 2]
mov ecx, edi
mov edx, esi
push 0x5132b8
push eax
call fcn.004beea7
pop ecx
pop edx
cmp byte [eax], 0
je 0x410197
xor ebp, ebp
mov eax, ebp
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebx + 3]
mov ecx, edi
mov edx, esi
push 0x5132c8
push eax
call fcn.004beea7
pop ecx
pop edx
cmp byte [eax], 0
mov ebp, 0
jne 0x41018d
lea eax, [ebx + 0x28]
mov ecx, edi
mov edx, esi
push 0x5132d8
push eax
call fcn.004beea7
pop ecx
pop edx
movzx eax, byte [eax]
mov ecx, edi
mov edx, esi
mov dword [esp], eax
lea eax, [ebx + 0x29]
push 0x5132e8
push eax
call fcn.004beea7
pop ecx
pop edx
movzx eax, byte [eax]
mov ecx, edi
mov edx, esi
mov dword [esp + 4], eax
lea eax, [ebx + 0x2a]
push 0x5132f8
push eax
call fcn.004beea7
pop ecx
pop edx
mov ebp, ebx
movzx ebx, byte [eax]
mov ecx, edi
mov edx, esi
add ebp, 0x2b
push 0x513308
push ebp
call fcn.004beea7
pop ecx
pop edx
mov ecx, dword [esp + 4]
movzx ebp, byte [eax]
shl ebx, 0x10
shl ecx, 8
shl ebp, 0x18
add ecx, dword [esp]
or ebx, ecx
or ebp, ebx
jmp 0x41018d
Function at 0x4152a5
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
aeskeygenassist xmm0, xmmword [edx], 2
movdqa xmmword [ecx], xmm0
ret

Function at 0x41c4d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, edx
mov edx, dword [esp + 0x14]
mov ebp, dword [esp + 0x20]
xor esi, esi
lea edx, [eax + edx*2]
movzx ebx, byte [eax + 1]
cmp byte [eax], ch
lea eax, [eax + 2]
lea edi, [esi + ebx]
jne 0x41c520
cmp edi, esi
jb 0x41c588
cmp edi, dword [esp + 0x1c]
ja 0x41c59b
add esi, dword [esp + 0x18]
nop word [eax + eax]
test ebx, ebx
je 0x41c522
dec ebx
cmp byte [esi], cl
lea esi, [esi + 1]
jne 0x41c510
jmp 0x41c57f
ja 0x41c528
cmp eax, edx
mov esi, edi
jne 0x41c4e3
mov edi, dword [esp + 0x24]
movzx ecx, cx
mov al, 1
add edi, ebp
nop word cs:[eax + eax]
nop dword [eax]
movzx edx, byte [ebp]
lea esi, [ebp + 1]
test dl, dl
js 0x41c560
mov ebp, esi
sub ecx, edx
jns 0x41c577
jmp 0x41c581
cmp esi, edi
je 0x41c5b0
movzx esi, byte [ebp + 1]
and edx, 0x7f
add ebp, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x41c581
xor al, 1
cmp ebp, edi
jne 0x41c540
jmp 0x41c581
xor eax, eax
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
mov edx, edi
push 0x515bac
call fcn.0050b0e0
add esp, 4
ud2
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0x515bac
call fcn.0050af30
add esp, 4
ud2
mov ecx, str.called__Option::unwrap____on_a__None__value
mov edx, 0x2b
push 0x515bbc
call fcn.0050af40
add esp, 4
ud2
Function at 0x41f748
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push edi
push esi
sub esp, 8
mov ecx, 0x5b703c
call fcn.004d7bff
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x41f770
cmp dword [eax], 0
mov edi, eax
je 0x41f770
add edi, 4
jmp 0x41f7e0
mov ecx, 0x5b703c
call fcn.004d7bff
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x41f7de
mov esi, eax
test eax, eax
jne 0x41f7b5
push 0xc
pop ecx
push 4
pop edx
call fcn.0041f654
and dword [eax], 0
mov ecx, 0x5b703c
mov esi, eax
mov dword [eax + 8], 0x5b703c
call fcn.004d7bff
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
call fcn.0041f131
call fcn.0041f18d
mov edx, dword [esi]
mov ebx, dword [esi + 4]
mov ecx, esp
lea edi, [esi + 4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov dword [esi], 1
mov dword [esi + 4], eax
call fcn.0041f21b
jmp 0x41f7e0
xor edi, edi
mov eax, edi
add esp, 8
pop esi
pop edi
pop ebx
ret

Function at 0x41ff62
Capabilities:
Get common file path

Disassembly:
push edi
push esi
push eax
mov edi, esp
mov esi, ecx
and dword [edi], 0
push edi
push 0
push 0
push edx
call dword [sym.imp.shell32.dll_SHGetKnownFolderPath]
test eax, eax
mov eax, dword [edi]
je 0x41ff8b
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov byte [esi + 0xc], 2
jmp 0x41ffa7
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
mov edx, dword [esp]
mov ecx, esi
push eax
call fcn.004c43a0
pop eax
push dword [esp]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
add esp, 4
pop esi
pop edi
ret
Function at 0x4336ac
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [esp + 0x18], ecx
mov ecx, edx
mov edi, edx
mov esi, dword [esp + 0x34]
call fcn.00422a3d
lea ecx, [edi + 8]
mov edx, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 8], esi
call fcn.004228f2
movzx ecx, word [edi + 0x38]
mov ebp, dword [edi + 4]
mov word [esp + 0xe], ax
movzx eax, ax
xor ebx, ebx
mov dword [esp + 0x14], eax
and eax, ecx
mov dword [esp], ecx
mov dword [esp + 4], edi
mov edi, eax
xor eax, eax
cmp edi, ebp
jae 0x4336f4
mov eax, dword [esp + 4]
mov eax, dword [eax]
movzx ecx, word [eax + edi*4]
cmp ecx, 0xffff
je 0x433763
mov dword [esp + 0x1c], ecx
mov esi, ebx
movzx eax, word [eax + edi*4 + 2]
mov edx, edi
mov ebx, dword [esp]
mov ecx, ebx
and ecx, eax
sub edx, ecx
and edx, ebx
mov ebx, esi
mov esi, dword [esp + 0x1c]
cmp edx, ebx
jb 0x433763
cmp ax, word [esp + 0xe]
jne 0x43375d
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x28]
push 0x53a85c
push esi
call fcn.00431412
pop ecx
pop edx
mov edx, dword [esp + 8]
mov ecx, eax
call fcn.00423283
test al, al
jne 0x433796
inc edi
inc ebx
mov eax, edi
jmp 0x4336f4
mov edx, dword [esp + 0x10]
mov ebp, dword [esp + 8]
cmp ebx, 0x200
mov dword [esp], 0
setae cl
mov eax, dword [edx]
mov esi, dword [ebp + 4]
mov ebx, dword [ebp + 8]
xor eax, 2
or eax, dword [edx + 4]
mov edx, dword [ebp]
mov ebp, dword [ebp + 0xc]
setne al
and al, cl
jmp 0x4337a3
mov al, 1
mov edx, edi
mov dword [esp], eax
mov al, 2
mov ebx, dword [esp + 4]
mov ecx, dword [esp + 0x18]
cmp byte [esp], 0
mov dword [ecx], edx
mov edx, dword [esp + 4]
mov dword [ecx + 4], esi
mov dword [ecx + 8], ebx
mov dword [ecx + 0xc], ebp
mov dword [ecx + 0x10], edi
mov dword [ecx + 0x14], edx
mov edx, dword [esp + 0x14]
mov word [ecx + 0x18], dx
mov byte [ecx + 0x1a], al
je 0x4337dd
mov ecx, dword [esp + 8]
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.00432954
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4383d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x120
mov ebx, dword [esp + 0x138]
mov edi, dword [esp + 0x134]
call fcn.004383ed
Function at 0x43ef30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov esi, ecx
mov ecx, 0x5b704c
call fcn.004d7bff
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x43ef62
cmp dword [eax], 0
mov edi, eax
jne 0x43f0a8
mov ecx, 0x5b704c
call fcn.004d7bff
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x43f0a6
mov edi, eax
test eax, eax
jne 0x43efab
push 8
pop ecx
push 4
pop edx
call fcn.0041f654
and dword [eax], 0
mov ecx, 0x5b704c
mov edi, eax
mov dword [eax + 4], 0x5b704c
call fcn.004d7bff
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test esi, esi
je 0x43efc3
mov ebx, dword [esi]
and dword [esi], 0
test ebx, ebx
jne 0x43f09b
xor ecx, ecx
call fcn.0043d4f1
lea esi, [esp + 0x10]
xorps xmm0, xmm0
mov dword [esp + 0xc], edi
mov ecx, esi
movaps xmmword [esi + 0x10], xmm0
movaps xmmword [esi], xmm0
call fcn.0043f138
test eax, eax
jne 0x43f0b2
lea ebx, [esp + 0x10]
lea esi, [esp + 0x88]
lea edx, [esp + 0x40]
movaps xmm0, xmmword [ebx]
movaps xmm1, xmmword [ebx + 0x10]
mov ecx, esi
movaps xmmword [edx + 0x10], xmm1
movaps xmmword [edx], xmm0
call fcn.0043d50d
push 0xc
pop eax
mov ecx, eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x84]
mov ecx, eax
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
push 0xd
pop ecx
lea edi, [esp + 0x40]
lea esi, [esp + 0x80]
rep movsd dword es:[edi], dword [esi]
push 8
pop edx
mov ecx, 0x158
call fcn.0041f654
mov ebx, eax
xor eax, eax
inc eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
lea eax, [ebx + 8]
push 0x100
push 0
push eax
call fcn.004fd260
add esp, 0xc
lea edi, [ebx + 0x10c]
mov dword [ebx + 0x108], 0x40
push 0xd
pop ecx
lea esi, [esp + 0x40]
mov eax, 0x10000
rep movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x140], eax
mov edi, dword [esp + 0xc]
and dword [ebx + 0x144], 0
mov dword [ebx + 0x148], eax
and dword [ebx + 0x14c], 0
and dword [ebx + 0x150], 0
mov ecx, dword [edi]
mov dword [edi], ebx
call fcn.0043d4f1
jmp 0x43f0a8
xor edi, edi
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
xor edx, edx
lea ecx, [esp + 0x80]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x14], 0x5382ec
inc edx
mov dword [ecx + 8], 0x538270
mov dword [eax], esi
mov dword [eax + 4], 0x43f0f7
mov dword [ecx + 0xc], edx
and dword [ecx], 0
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], edx
mov edx, 0x5382cc
call fcn.0050ae80
ud2
Function at 0x43f138
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov dword [esp], ecx
push 0x20
pop ebp
xor ebx, ebx
mov edi, dword [esp]
test bl, 1
jne 0x43f19c
mov esi, ebp
lea eax, [edi + ebp]
mov dword [esp], eax
push 2
push ebp
push edi
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
xor ebp, ebp
mov bl, 1
cmp eax, 0xc0000000
mov dword [esp + 4], eax
jb 0x43f147
push esi
push edi
call dword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
jne 0x43f147
mov esi, dword [esp + 4]
xor esi, 0x80000000
je 0x43f19c
push 4
pop ecx
mov edx, ecx
call fcn.00414760
test eax, eax
je 0x43f1a6
mov dword [eax], esi
jmp 0x43f19e
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
push 4
pop ecx
mov edx, ecx
call fcn.0050aba0
ud2

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

Disassembly:
push edi
push esi
mov esi, ecx
mov ecx, 0x5b70fc
call fcn.004d7bff
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
jbe 0x44038c
cmp dword [eax], 0
je 0x44038c
add eax, 4
jmp 0x4403f5
mov ecx, 0x5b70fc
call fcn.004d7bff
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4403e3
mov edi, eax
test eax, eax
jne 0x4403d1
push 0xc
pop ecx
push 4
pop edx
call fcn.00422855
and dword [eax], 0
mov ecx, 0x5b70fc
mov edi, eax
mov dword [eax + 8], 0x5b70fc
call fcn.004d7bff
push edi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test esi, esi
je 0x4403e7
mov ecx, dword [esi]
and dword [esi], 0
test ecx, ecx
je 0x4403e9
mov ecx, dword [esi + 4]
jmp 0x4403e9
xor eax, eax
jmp 0x4403f5
xor ecx, ecx
mov dword [edi], 1
lea eax, [edi + 4]
mov dword [edi + 4], ecx
pop esi
pop edi
ret