joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431cb9
Capabilities:
Check if file exists
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x248
push esi
or esi, 0xffffffff
push edi
mov edi, esi
test eax, eax
je 0x431df1
cmp byte [eax], 0
je 0x431df1
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea ecx, [ebp + eax - 0x109]
cmp eax, 2
je 0x431d13
cmp eax, 3
jne 0x431d53
cmp byte [ebp - 0x107], 0x3a
jne 0x431d53
cmp eax, 2
jne 0x431d34
lea eax, [ebp - 0x108]
push 0x438484
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x431df1
jmp 0x431dee
mov byte [ecx], 0
dec ecx
cmp byte [ecx], 0x5c
je 0x431d4f
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x431d9d
test byte [ebp - 0x248], 0x10
je 0x431d82
push 0xfffffffffffffffe
pop edi
or esi, 0xffffffff
jmp 0x431d94
mov esi, dword [ebp - 0x22c]
xor edi, edi
or edi, dword [ebp - 0x228]
xor edx, edx
or esi, edx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x431df1
cmp byte [ebp - 0x108], 0x5c
jne 0x431daf
cmp byte [ebp - 0x107], 0x5c
je 0x431dc1
cmp byte [ebp - 0x108], 0x2e
jne 0x431df1
cmp byte [ebp - 0x107], 0x2e
jne 0x431df1
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x431dd9
test al, 0x10
je 0x431df1
jmp 0x431deb
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x431df1
or esi, 0xffffffff
push 0xfffffffffffffffe
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
leave
ret 4
Function at 0x432240
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x432275
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x4325d0
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
mov ecx, dword [0x47fbb8]
push eax
push ecx
mov dword [esp + 8], 0
call fcn.00432d06
test eax, eax
je 0x432622
cmp dword [eax + 4], 0
je 0x432608
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call fcn.00432a50
pop ecx
ret 0xc
mov ecx, dword [esp + 0x10]
mov eax, dword [eax]
push 0
lea edx, [esp + 4]
push edx
mov edx, dword [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp]
pop ecx
ret 0xc

Function at 0x432680
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x4326d9
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4326d8
mov eax, dword [esp + 0x10]
mov ecx, dword [0x47fbb8]
push eax
push ecx
call fcn.00432d06
test eax, eax
je 0x4326d4
cmp dword [eax + 4], 0
je 0x4326c2
push esi
push edi
push eax
call fcn.00432b70
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc

Function at 0x4326e0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x47fbb8]
push esi
push eax
push ecx
xor esi, esi
call fcn.00432d06
test eax, eax
je 0x432702
pop esi
mov dword [esp + 4], eax
jmp fcn.00432240
mov eax, esi
pop esi
ret 4
Function at 0x432b70
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x432ba5
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x432c1a
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
dec ecx
je 0x432c07
dec ecx
je 0x432bf2
sub ecx, 2
je 0x432bdf
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.00432240
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x432c47
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc

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

Disassembly:
push edi
push dword [0x47f6e8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x432f15
push esi
push dword [0x47f6f0]
push 8
push dword [0x47e414]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x47f6e8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x47f6ec]
jmp 0x432f05
mov eax, dword [esi + 0xc]
test eax, eax
je 0x432f03
mov ecx, dword [esi + 8]
add ecx, edi
push ecx
call eax
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x432ef3
push edi
push 0x432e79
call fcn.004371cf
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4
Function at 0x432f1f
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
mov ebx, dword [esp + 8]
mov eax, ebx
and eax, 3
push esi
push edi
je 0x432f34
push 4
pop ecx
sub ecx, eax
add ebx, ecx
cmp dword [0x47f6f0], 0
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
jne 0x432f66
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push ebx
push 8
push dword [0x47e414]
mov dword [0x47f6e8], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x47f6e8]
call esi
mov edi, dword [0x47f6f0]
add dword [0x47f6f0], ebx
push dword [0x47f6f0]
push dword [0x47f6e8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x47e414]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebx, eax
push ebx
push dword [0x47f6e8]
call esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x432fac
cmp dword [esp + 0x18], esi
je 0x432fd0
push 0x14
push 0x47f6ec
call fcn.00433574
pop ecx
pop ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ecx
test esi, esi
je 0x432fd0
add ebx, edi
push ebx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x433a27
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
xor ebp, ebp
push ebp
call dword [sym.imp.USER32.DLL_OpenClipboard]
test eax, eax
je 0x433a98
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
cmp ebx, ebp
jne 0x433a45
mov ebx, 0x43803f
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
lea edi, [eax + 1]
push edi
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebp
je 0x433a8f
call dword [sym.imp.USER32.DLL_EmptyClipboard]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x433a8f
push edi
push ebx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 1
call dword [sym.imp.USER32.DLL_SetClipboardData]
mov ebp, eax
call dword [sym.imp.USER32.DLL_CloseClipboard]
pop edi
pop esi
pop ebx
mov eax, ebp
pop ebp
ret 4

Function at 0x433c30
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x435a70
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebp
mov ebp, dword [esp + 0x34]
mov eax, ebp
cdq
and edx, 0xf
add eax, edx
push esi
mov esi, dword [esp + 0x30]
sar eax, 4
and ebp, 0x8000000f
push edi
mov edi, dword [esp + 0x38]
jns 0x435a9a
dec ebp
or ebp, 0xfffffff0
inc ebp
mov dword [esp + 0x34], ebp
je 0x435aac
test eax, eax
jne 0x435aab
pop edi
pop esi
pop ebp
add esp, 0x20
ret
dec eax
mov edx, dword [esp + 0x40]
push ebx
mov ebx, dword [esp + 0x34]
mov ecx, edx
test eax, eax
je 0x435b0f
mov ebp, eax
lea ecx, [ecx]
mov eax, dword [esi]
xor eax, dword [ecx]
mov edx, dword [ecx + 4]
xor edx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 8]
xor eax, dword [esi + 8]
mov ecx, dword [ecx + 0xc]
xor ecx, dword [esi + 0xc]
mov dword [esp + 0x14], edx
push edi
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 4]
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [ebx + 8]
push eax
mov dword [esp + 0x2c], ecx
call fcn.00434cf0
mov ecx, edi
add esp, 0x10
add esi, 0x10
add edi, 0x10
dec ebp
jne 0x435ac0
mov ebp, dword [esp + 0x38]
mov edx, dword [esp + 0x44]
test ebp, ebp
je 0x435bc4
mov eax, dword [esi]
xor eax, dword [ecx]
mov edx, dword [esi + 4]
xor edx, dword [ecx + 4]
mov ebp, dword [esi + 8]
mov dword [esp + 0x18], ebp
mov ebp, dword [esi + 0xc]
xor ebp, dword [ecx + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
mov edx, dword [ecx + 8]
xor dword [esp + 0x18], edx
mov edx, dword [ebx + 4]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x24], ebp
lea ebp, [ebx + 8]
push edx
push ebp
mov dword [esp + 0x4c], ebp
call fcn.00434cf0
xor eax, eax
add esp, 0x10
cmp dword [esp + 0x38], eax
jbe 0x435b8c
lea ebp, [edi + 0x10]
sub esi, edi
lea esp, [esp]
mov cl, byte [esp + eax + 0x20]
mov dl, byte [esi + ebp]
xor dl, cl
mov byte [esp + eax + 0x20], dl
mov byte [ebp], cl
inc eax
inc ebp
cmp eax, dword [esp + 0x38]
jb 0x435b70
mov ebp, dword [esp + 0x3c]
mov edx, dword [ebx + 4]
lea eax, [esp + 0x20]
push eax
mov ecx, eax
push ecx
push edx
push ebp
call fcn.00434cf0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov dword [edi], eax
mov eax, dword [esp + 0x3c]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov edx, dword [esp + 0x54]
add esp, 0x10
mov dword [edi + 0xc], eax
lea ecx, [esp + 0x20]
mov eax, dword [ecx]
mov dword [edx], eax
mov eax, dword [ecx + 4]
mov dword [edx + 4], eax
mov eax, dword [ecx + 8]
pop ebx
pop edi
mov dword [edx + 8], eax
mov ecx, dword [ecx + 0xc]
mov eax, dword [esp + 0x38]
pop esi
mov dword [edx + 0xc], ecx
pop ebp
add esp, 0x20
ret
Function at 0x435f00
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x47c8b0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
sub edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x435f46
mov ecx, dword [ebp - 4]
add ecx, 5
push ecx
push 0
mov edx, dword [0x47fbbc]
push edx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x435f67
mov edx, dword [ebp - 4]
add edx, 5
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push 0
mov edx, dword [0x47fbbc]
push edx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00436490
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 8], edx
mov esp, ebp
pop ebp
ret 8

Function at 0x436160
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x47c8b0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, 1
mov eax, dword [ebp - 4]
mov dword [eax + 8], edx
mov esp, ebp
pop ebp
ret

Function at 0x436190
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edx
mov eax, dword [0x47c8b0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
add ecx, dword [edx + 8]
mov dword [ebp - 4], ecx
pop edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x4361d0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x47c8b0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov edx, dword [ebp - 4]
add eax, dword [edx + 8]
mov esp, ebp
pop ebp
ret

Function at 0x436370
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x47c8b0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx]
jb 0x4363ae
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
add ecx, dword [edx + 8]
cmp dword [ebp + 8], ecx
ja 0x4363ae
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax]
add ecx, 1
mov eax, ecx
jmp 0x4363b0
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4363c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x47c8b0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0xc], 0xffffffff
jne 0x4363e4
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 8]
mov dword [ebp + 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
add ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
sub eax, 4
cmp dword [ebp - 8], eax
jl 0x436431
mov ecx, dword [ebp - 8]
add ecx, 0x4000
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
add ecx, 5
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
push 0
mov ecx, dword [0x47fbbc]
push ecx
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, dword [ebp - 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
add ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
add edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], edx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x436540
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x47c8b0]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
add eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4
Function at 0x4371cf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp dword [0x47f74c], ebx
jne 0x437205
push 0x47f730
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x47f74c], 1
push 0x47f730
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x47f748]
mov edi, eax
cmp eax, ebx
je 0x437269
cmp dword [ebp - 4], ebx
jne 0x4373a9
xor eax, eax
inc eax
lea ecx, [edi + 0x114]
cmp esi, dword [ecx]
je 0x43723c
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x43722d
jmp 0x43725a
push dword [ebp + 0xc]
lea esi, [edi + eax*4 + 0x210]
push dword [ebp + 8]
call fcn.00437024
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp - 4], 1
mov edi, dword [edi]
cmp edi, ebx
jne 0x43721b
cmp dword [ebp - 4], ebx
jne 0x4373a9
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push 0x100000
lea eax, [ebp - 8]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x4373a9
mov edi, dword [0x47f748]
jmp 0x4372a9
cmp dword [edi + 0xc], 0x3f
jl 0x437343
mov edi, dword [edi]
cmp edi, ebx
jne 0x43729d
push 0x310
push 8
push dword [0x47e414]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x4373a0
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [edi + 8], eax
cmp eax, ebx
je 0x437392
push ebx
push ebx
push edi
push 0x437075
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x114], esi
push 0x1000
lea esi, [edi + 0x214]
push ebx
mov dword [edi + 0x14], eax
mov dword [esi], ebx
mov dword [edi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x437389
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00437024
mov eax, dword [0x47f748]
pop ecx
pop ecx
mov dword [edi + 4], ebx
mov dword [edi], eax
cmp eax, ebx
je 0x43733b
mov dword [eax + 4], edi
mov dword [0x47f748], edi
jmp 0x4373a9
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
mov dword [edi + eax*4 + 0x10], ecx
mov eax, dword [edi + 0xc]
push dword [ebp + 8]
mov dword [edi + eax*4 + 0x110], esi
mov eax, dword [edi + 0xc]
mov dword [edi + eax*4 + 0x210], ebx
mov eax, dword [edi + 0xc]
lea esi, [edi + eax*4 + 0x210]
call fcn.00437024
inc dword [edi + 0xc]
pop ecx
pop ecx
push ebx
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x4373a9
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push dword [0x47e414]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x47f730
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405ca0
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4d358a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, dword [esp + 0x1c]
lea edx, [eax*8]
mov dword [esp + 8], 0
sub edx, eax
mov eax, dword [ecx + 4]
mov ecx, edi
lea esi, [eax + edx*8]
push esi
call fcn.004b4280
lea ecx, [esi + 4]
mov dword [esp + 0x14], 0
push ecx
lea ecx, [edi + 4]
call fcn.004b4280
lea edx, [esi + 8]
lea ecx, [edi + 8]
push edx
mov byte [esp + 0x18], 1
call fcn.004b4280
lea eax, [esi + 0xc]
lea ecx, [edi + 0xc]
push eax
mov byte [esp + 0x18], 2
call fcn.004b4280
lea ecx, [esi + 0x10]
mov byte [esp + 0x14], 3
push ecx
lea ecx, [edi + 0x10]
call fcn.004b4280
lea edx, [esi + 0x14]
lea ecx, [edi + 0x14]
push edx
mov byte [esp + 0x18], 4
call fcn.004b4280
lea eax, [esi + 0x18]
lea ecx, [edi + 0x18]
push eax
mov byte [esp + 0x18], 5
call fcn.004b4280
lea ecx, [esi + 0x1c]
mov byte [esp + 0x14], 6
push ecx
lea ecx, [edi + 0x1c]
call fcn.004b4280
mov edx, dword [esi + 0x20]
mov dword [edi + 0x20], edx
mov eax, dword [esi + 0x24]
mov dword [edi + 0x24], eax
mov ecx, dword [esi + 0x28]
mov dword [edi + 0x28], ecx
mov edx, dword [esi + 0x2c]
mov dword [edi + 0x2c], edx
mov eax, dword [esi + 0x30]
mov dword [edi + 0x30], eax
mov ecx, dword [esi + 0x34]
mov dword [edi + 0x34], ecx
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x416320
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d4a54
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x50b848]
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi + 4], eax
mov ecx, dword [0x50b848]
mov dword [esp + 0x10], 0
mov dword [esi + 8], ecx
push 0x4b390b
push 0x40bb40
push 6
lea edx, [esi + 0xc]
push 4
push edx
mov byte [esp + 0x24], 1
call fcn.004a1a12
mov eax, dword [0x50b848]
mov dword [esi + 0x24], eax
mov ecx, dword [0x50b848]
mov dword [esi + 0x28], ecx
mov edx, dword [0x50b848]
mov dword [esi + 0x2c], edx
mov eax, dword [0x50b848]
mov dword [esi + 0x30], eax
mov ecx, dword [0x50b848]
mov dword [esi + 0x34], ecx
mov edx, dword [0x50b848]
mov dword [esi + 0x38], edx
mov eax, dword [0x50b848]
mov dword [esi + 0x3c], eax
mov ecx, dword [0x50b848]
mov dword [esi + 0x40], ecx
mov ecx, esi
mov byte [esp + 0x10], 0xa
mov dword [esi], 0x4e0c68
call fcn.004164e0
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x41633b
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d4a54
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x50b848]
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi + 4], eax
mov ecx, dword [0x50b848]
mov dword [esp + 0x10], 0
mov dword [esi + 8], ecx
push 0x4b390b
push 0x40bb40
push 6
lea edx, [esi + 0xc]
push 4
push edx
mov byte [esp + 0x24], 1
call fcn.004a1a12
mov eax, dword [0x50b848]
mov dword [esi + 0x24], eax
mov ecx, dword [0x50b848]
mov dword [esi + 0x28], ecx
mov edx, dword [0x50b848]
mov dword [esi + 0x2c], edx
mov eax, dword [0x50b848]
mov dword [esi + 0x30], eax
mov ecx, dword [0x50b848]
mov dword [esi + 0x34], ecx
mov edx, dword [0x50b848]
mov dword [esi + 0x38], edx
mov eax, dword [0x50b848]
mov dword [esi + 0x3c], eax
mov ecx, dword [0x50b848]
mov dword [esi + 0x40], ecx
mov ecx, esi
mov byte [esp + 0x10], 0xa
mov dword [esi], 0x4e0c68
call fcn.004164e0
mov ecx, dword [esp + 8]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x416400
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d4ae4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
mov dword [esi], 0x4e0c68
mov dword [esp + 0x10], 0xa
call fcn.004165f0
lea ecx, [esi + 0x40]
mov byte [esp + 0x10], 9
call fcn.004b450b
lea ecx, [esi + 0x3c]
mov byte [esp + 0x10], 8
call fcn.004b450b
lea ecx, [esi + 0x38]
mov byte [esp + 0x10], 7
call fcn.004b450b
lea ecx, [esi + 0x34]
mov byte [esp + 0x10], 6
call fcn.004b450b
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 5
call fcn.004b450b
lea ecx, [esi + 0x2c]
mov byte [esp + 0x10], 4
call fcn.004b450b
lea ecx, [esi + 0x28]
mov byte [esp + 0x10], 3
call fcn.004b450b
lea ecx, [esi + 0x24]
mov byte [esp + 0x10], 2
call fcn.004b450b
push 0x4b390b
push 6
lea eax, [esi + 0xc]
push 4
push eax
mov byte [esp + 0x20], 1
call fcn.004a191e
lea ecx, [esi + 8]
mov byte [esp + 0x10], 0
call fcn.004b450b
lea ecx, [esi + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.004b450b
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4173f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
mov edi, ecx
mov edx, dword [ebp]
xor eax, eax
mov ecx, dword [edi + 0x54]
mov bl, byte [edx]
test ecx, ecx
je 0x417427
test bl, bl
je 0x41744c
mov ecx, eax
and ebx, 0xff
shl ecx, 5
sub ecx, eax
add ecx, ebx
mov bl, byte [edx + 1]
inc edx
mov eax, ecx
test bl, bl
jne 0x41740c
jmp 0x41744c
test bl, bl
je 0x41744c
mov esi, eax
and ebx, 0xff
xor ecx, ecx
mov cl, byte [ebx + 0x513a68]
mov bl, byte [edx + 1]
shl esi, 5
sub esi, eax
add ecx, esi
inc edx
test bl, bl
mov eax, ecx
jne 0x41742b
mov esi, dword [esp + 0x14]
xor edx, edx
div dword [edi + esi*4 + 0xac]
mov eax, dword [edi + esi*4 + 0x94]
mov ecx, dword [eax + edx*4]
mov dword [ebp + 4], ecx
mov eax, dword [edi + esi*4 + 0x94]
pop edi
pop esi
mov dword [eax + edx*4], ebp
pop ebp
pop ebx
ret 8