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

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
mov ebp, ecx
xor ebx, ebx
mov dword [esp + 0xc], ebp
push edi
mov edi, edx
mov dword [esp + 0x24], edi
test ebp, ebp
je 0x4ad6eb
push 2
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
mov dword [esp + 0x1c], eax
jmp 0x4ad6f5
mov esi, dword [0x4fb9d0]
mov dword [esp + 0x1c], esi
test esi, esi
je 0x4ad886
test edi, edi
jns 0x4ad70a
mov eax, edi
neg eax
movzx eax, ax
jmp 0x4ad73b
test edi, edi
mov dword [esp + 0x2c], ebx
mov eax, 1
mov dword [esp + 0x30], 0x4fe34d
cmovne eax, edi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push 0x4ad690
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
mov eax, dword [esp + 0x30]
cmp eax, 0x4fe34d
je 0x4ad85f
push 0xe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4ad85f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4ad85f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x4ad85f
cmp dword [esp + 0x38], 0xffffffff
mov ebx, dword [esp + 0x3c]
cmovne ebx, dword [esp + 0x38]
test ebx, ebx
jne 0x4ad79d
push 0xb
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov ecx, dword [esp + 0x18]
mov ebx, eax
lea eax, [ecx + 6]
mov dword [esp + 0x14], 0
mov dword [esp + 0x20], eax
xor ebp, ebp
movzx eax, word [ecx + 4]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4ad859
mov edi, dword [esp + 0x20]
mov esi, 0x100
movzx edx, byte [edi]
test edx, edx
cmove edx, esi
xor ecx, ecx
cmp edx, ebp
jle 0x4ad7dc
cmp ebp, ebx
setl cl
jmp 0x4ad7e1
cmp edx, ebx
setge cl
test ecx, ecx
mov eax, edi
cmove eax, dword [esp + 0x14]
add edi, 0xe
test ecx, ecx
mov dword [esp + 0x14], eax
cmove edx, ebp
sub dword [esp + 0x18], 1
mov ebp, edx
jne 0x4ad7c7
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
test eax, eax
je 0x4ad859
movzx eax, word [eax + 0xc]
push 3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x4ad859
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4ad859
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x4ad859
push 0
push 0
push 0
push 0x30000
push 1
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebp
call dword [sym.imp.USER32.dll_CreateIconFromResourceEx]
mov ebx, eax
jmp 0x4ad85b
xor ebx, ebx
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4ad877
test ebx, ebx
je 0x4ad877
mov dword [eax], esi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x24
ret
test ebp, ebp
je 0x4ad882
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x4ad86d
test edi, edi
jle 0x4ad89f
lea eax, [edi - 1]
push eax
push ebp
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
xor eax, eax
cmp edi, 0xffffffff
cmovl eax, edi
push eax
push ebp
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x4aef40
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x410
push edi
push 0x400
lea eax, [esp + 0x18]
mov dword [esp + 8], edx
push 0
push eax
mov edi, ecx
call fcn.004c22a0
add esp, 0xc
lea eax, [esp + 0x10]
push 0xf0000000
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4af0db
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x8004
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4af0db
mov ecx, dword [esp + 0x418]
test ecx, ecx
je 0x4aefe2
cmp dword [ecx], 0
je 0x4aefe2
push esi
xor edx, edx
mov eax, ecx
mov esi, 0x4f0f54
nop dword [eax]
cmp ecx, 0x4f9acc
jne 0x4aefcc
mov eax, esi
jmp 0x4aefce
mov eax, dword [eax]
mov al, byte [eax]
add esi, 5
mov byte [esp + edx + 0x18], al
inc edx
cmp dword [ecx + edx*4], 0
lea eax, [ecx + edx*4]
jne 0x4aefc0
pop esi
lea ecx, [esp + 0x14]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4aeff0
push 0
sub ecx, edx
lea eax, [esp + 0x18]
push ecx
push eax
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4af0db
push 0x400
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004c22a0
mov ecx, dword [esp + 0x42c]
add esp, 0xc
mov edx, ecx
shl edx, 0x10
cmp ecx, 0x80
jne 0x4af042
mov eax, 0x660e
jmp 0x4af052
xor eax, eax
cmp ecx, 0xc0
setne al
add eax, 0x660f
lea ecx, [esp + 0xc]
push ecx
push edx
push dword [esp + 0x10]
push eax
push dword [esp + 0x20]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x4af0db
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x4af0db
cmp byte [esp + 0x41c], 0
je 0x4af0a3
mov eax, dword [esp + 4]
add eax, 0x10
push eax
lea eax, [esp + 8]
push eax
push edi
push 0
push 1
push 0
push dword [esp + 0x24]
call dword [0x4fb994]
jmp 0x4af0b9
lea eax, [esp + 4]
push eax
push edi
push 0
push 1
push 0
push dword [esp + 0x20]
call dword [0x4fb990]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 4]
pop edi
add esp, 0x410
ret
xor eax, eax
pop edi
add esp, 0x410
ret
Function at 0x4affd0
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, 0x4fda6c
push esi
mov esi, edx
call fcn.00406510
test eax, eax
jne 0x4b0001
push 0x4e3371
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x4fda88
call fcn.0044dd10
pop esi
pop ebx
add esp, 8
ret
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea eax, [ebx + esi]
lea esi, [ebx + 4]
mov dword [esp + 0x14], eax
cmp esi, eax
ja 0x4b0089
mov ecx, dword [ebx]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x4b0089
mov edi, esi
add esi, 4
cmp esi, eax
ja 0x4b0089
mov edi, dword [edi]
mov ebx, esi
add esi, edi
cmp esi, eax
ja 0x4b0089
xor eax, eax
test edi, edi
sete al
add eax, edi
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
je 0x4b013d
test edi, edi
je 0x4b0073
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4b00d8
push edi
push ebx
push eax
call fcn.004c2440
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ebx, esi
push ebp
push dword [esp + 0x14]
call dword [sym.imp.USER32.dll_SetClipboardData]
mov eax, dword [esp + 0x14]
lea esi, [ebx + 4]
cmp esi, eax
jbe 0x4b0017
cmp dword [0x4fda84], 0
je 0x4b00cb
cmp dword [0x4fda74], 0
je 0x4b00b1
push dword [0x4fda6c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4fda74], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4fda84], 0
mov dword [0x4fda6c], 0
pop edi
pop ebp
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x4fda84], 0
je 0x4b0121
cmp dword [0x4fda74], 0
je 0x4b0107
push dword [0x4fda6c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4fda74], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4fda84], 0
mov dword [0x4fda6c], 0
push 0x4e3371
push 0x4e3738
mov ecx, 0x4fda88
call fcn.0044dd10
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
cmp dword [0x4fda84], 0
je 0x4b017f
cmp dword [0x4fda74], 0
je 0x4b0165
push dword [0x4fda6c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x4fda74], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x4fda84], 0
mov dword [0x4fda6c], 0
push 0x4e3371
push str.Out_of_memory.
mov ecx, 0x4fda88
call fcn.0044dd10
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
Function at 0x4b0ed0
Capabilities:
Check for foreground window switch
Log keystrokes

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0x14]
mov ebx, ecx
push esi
push edi
mov edi, edx
mov al, byte [edi]
cmp al, 0x41
je 0x4b0ee6
cmp al, 0x61
jne 0x4b0f4a
cmp byte [edi + 1], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jne 0x4b0f52
cmp byte [ecx], 0
jne 0x4b0f52
cmp byte [eax], 0
jne 0x4b0f52
cmp byte [ebp], 0
jne 0x4b0f52
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4b0f4a
cmp byte [ebx + 0xca], 0
jne 0x4b0f2f
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4b0f4a
mov ecx, esi
call fcn.004b2380
test al, al
jne 0x4b0f4a
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4b0f43
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x20]
test dl, dl
jne 0x4b0f74
cmp byte [edi], dl
jne 0x4b0f74
cmp byte [ecx], dl
jne 0x4b0f74
cmp byte [eax], dl
jne 0x4b0f74
cmp byte [ebp], dl
jne 0x4b0f74
mov ecx, ebx
call fcn.004b1770
jmp 0x4b0f8e
push dword [esp + 0x28]
push dword [esp + 0x28]
push 0
push edx
push ebp
push eax
push ecx
mov edx, edi
mov ecx, ebx
call fcn.004b15a0
add esp, 0x1c
test eax, eax
jne 0x4b0f97
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
mov ecx, eax
pop ebx
jmp fcn.004b0fb0
Function at 0x4b1330
Capabilities:
Check for time delay via gettickcount
Terminate process

Disassembly:
push ecx
cmp byte [esp + 8], 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
je 0x4b139a
lea eax, [esp + 0xc]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x4b13a7
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4b13a7
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4b13a7
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b13a7
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
xor edi, edi
test ebx, ebx
cmovns edi, ebx
test edi, edi
je 0x4b1413
push ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword fs:[0x24]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x18], eax
nop word [eax + eax]
cmp dword [0x4fda50], ebx
jne 0x4b13e9
mov edx, 1
mov ecx, 0x8000012f
call fcn.004018a0
jmp 0x4b13ed
push 0xa
call ebp
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b140b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x18]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jg 0x4b13d0
pop ebp
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret
pop edi
mov eax, esi
pop esi
pop ebx
pop ecx
ret
Function at 0x4b15a0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e64
call fcn.004db810
push ebx
mov ebx, dword [esp + 0x8e6c]
push ebp
mov ebp, edx
mov edx, dword [esp + 0x8e74]
push esi
mov esi, dword [esp + 0x8e7c]
push edi
mov al, byte [ebp]
mov edi, ecx
cmp al, 0x41
je 0x4b15d2
cmp al, 0x61
jne 0x4b1635
cmp byte [ebp + 1], 0
jne 0x4b1635
cmp byte [ebx], 0
jne 0x4b1635
cmp byte [edx], 0
jne 0x4b1635
cmp byte [esi], 0
jne 0x4b1635
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4b1614
cmp byte [edi + 0xca], 0
jne 0x4b1614
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4b1612
mov ecx, esi
call fcn.004b2380
test al, al
je 0x4b1614
xor esi, esi
cmp byte [esp + 0x8e88], 0
je 0x4b1628
test esi, esi
je 0x4b1628
mov dword [edi + 0xa4], esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x8e64
ret
test al, al
jne 0x4b1655
cmp byte [ebx], al
jne 0x4b1655
cmp byte [edx], al
jne 0x4b1655
cmp byte [esi], al
jne 0x4b1655
call fcn.004b1770
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e64
ret
lea ecx, [esp + 0x10]
call fcn.0044f5f0
push esi
push edx
push ebx
push ebp
push edi
call fcn.004b24d0
test eax, eax
je 0x4b172a
test byte [esp + 0x10], 2
mov al, byte [esp + 0x8e84]
mov byte [esp + 0xc3d], al
mov eax, dword [esp + 0x8e8c]
mov dword [esp + 0xc4c], eax
mov eax, dword [esp + 0x8e90]
mov dword [esp + 0xc50], eax
je 0x4b1737
mov esi, dword [esp + 0x82c]
cmp esi, 0xffff
je 0x4b1702
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b172a
cmp byte [edi + 0xca], 0
mov esi, dword [esp + 0x82c]
jne 0x4b1702
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4b16e5
mov ecx, esi
call fcn.004b2380
test al, al
je 0x4b16fb
push 0xfffffffffffffff0
push dword [esp + 0x830]
call dword [sym.imp.USER32.dll_GetWindowLongA]
test eax, 0x40000000
je 0x4b172a
mov esi, dword [esp + 0x82c]
cmp dword [esp + 0xc64], esi
je 0x4b171b
lea ecx, [esp + 0x10]
mov dword [esp + 0xc64], esi
call fcn.004b2940
push 0
lea ecx, [esp + 0x14]
call fcn.004b2a20
test eax, eax
jne 0x4b1747
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e64
ret
lea eax, [esp + 0x10]
push eax
push 0x4b1810
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [esp + 0x8e88], 0
mov eax, dword [esp + 0xc44]
je 0x4b172c
test eax, eax
je 0x4b172c
mov dword [edi + 0xa4], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x8e64
ret
Function at 0x4b2940
Capabilities:
Get graphical window text

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0xc54]
test ecx, ecx
je 0x4b2a16
mov eax, dword [esi]
test eax, eax
je 0x4b2a16
push edi
test al, 1
jne 0x4b296c
mov eax, dword [esi + 0x80c]
cmp byte [eax], 0
je 0x4b2985
push 0x7fff
lea edi, [esi + 0xc60]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
jne 0x4b2985
mov byte [edi], al
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test al, 4
je 0x4b29a2
lea eax, [esi + 0xc5c]
push eax
push dword [esi + 0xc54]
call edi
mov eax, dword [esi]
test al, 0x20
je 0x4b29dc
lea eax, [esp + 8]
push eax
push dword [esi + 0xc54]
call edi
test eax, eax
je 0x4b29dc
movzx eax, byte [esi + 0xc2c]
lea edx, [esi + 0x8d60]
push eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.00477ff0
add esp, 8
test eax, eax
jne 0x4b29dc
mov byte [esi + 0x8d60], al
mov eax, dword [esi]
pop edi
test al, 8
je 0x4b29fd
push 0x101
lea eax, [esi + 0x8c5f]
push eax
push dword [esi + 0xc54]
call dword [sym.imp.USER32.dll_GetClassNameA]
mov eax, dword [esi]
test eax, 0x100
je 0x4b2a16
push dword [esi + 0xc54]
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esi + 0xc58], eax
pop esi
pop ecx
ret

Function at 0x4b34c0
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x8e64
call fcn.004db810
mov edx, dword [ecx + 8]
test edx, edx
je 0x4b3560
lea ecx, [esp]
call fcn.0044f5f0
mov al, byte [esp + 0x8e68]
mov byte [esp + 0xc48], al
mov eax, dword [esp + 0x8e6c]
mov dword [esp + 0xc4c], eax
mov eax, ecx
push eax
push 0x4b3c90
mov dword [esp + 0xc4c], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0xc34], 0
je 0x4b3560
mov eax, dword [0x4f898c]
cmp dword [eax + 0x54], 0xffffffff
jle 0x4b3560
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4fda50], eax
je 0x4b354d
mov eax, dword [0x4f898c]
push dword [eax + 0x54]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
add esp, 0x8e64
ret 8
mov ecx, dword [0x4f898c]
mov edx, 1
mov ecx, dword [ecx + 0x54]
call fcn.004018a0
mov eax, 1
add esp, 0x8e64
ret 8
Function at 0x4b3830
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x8e74
call fcn.004db810
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x4b3a20
push 0
call fcn.004b3a30
test eax, eax
jne 0x4b3863
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push dword [0x4f898c]
mov ebx, eax
mov ecx, esi
push ebx
call fcn.004b3ad0
mov edx, dword [0x4fd1d8]
xor ecx, ecx
test eax, eax
cmovne edx, ecx
lea ecx, [esp + 0x18]
mov dword [0x4fd1d8], edx
call fcn.0044f5f0
cmp byte [ebp + 8], 0
je 0x4b38a7
mov byte [esp + 0xc45], 0
test edx, edx
je 0x4b38af
mov byte [esp + 0xc45], 1
mov eax, dword [0x4fd1d4]
mov edi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0xc54], eax
mov eax, dword [esi + 8]
mov dword [esp + 0xc5c], eax
lea eax, [esp + 0x18]
push eax
push 0x4b3b60
mov dword [esp + 0xc60], edx
call edi
mov eax, dword [esp + 0xc4c]
test eax, eax
je 0x4b39e8
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0x4b22c0
mov dword [esp + 0x1c], 0
call edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4b394b
mov ecx, dword [0x4fd1d8]
xor eax, eax
mov edx, dword [esp + 0xc4c]
mov esi, dword [0x4fd1d4]
test ecx, ecx
jle 0x4b3930
cmp dword [esi + eax*4], edx
je 0x4b3942
inc eax
cmp eax, ecx
jl 0x4b3926
cmp ecx, 0x1f4
jge 0x4b3942
mov dword [esi + ecx*4], edx
inc ecx
mov dword [0x4fd1d8], ecx
mov dword [esp + 0xc4c], edi
jmp 0x4b3952
mov edi, dword [esp + 0xc4c]
mov ecx, edi
call fcn.004b0fb0
mov ecx, dword [0x4fd1d8]
xor eax, eax
mov edx, dword [esp + 0xc4c]
mov esi, dword [0x4fd1d4]
test ecx, ecx
jle 0x4b397c
cmp dword [esi + eax*4], edx
je 0x4b398e
inc eax
cmp eax, ecx
jl 0x4b3972
cmp ecx, 0x1f4
jge 0x4b398e
mov dword [esi + ecx*4], edx
inc ecx
mov dword [0x4fd1d8], ecx
mov eax, dword [0x4f898c]
cmp dword [eax + 0x54], 0xffffffff
jle 0x4b3a20
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4fda50], eax
je 0x4b39c7
mov eax, dword [0x4f898c]
push dword [eax + 0x54]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x4f898c]
mov edx, 1
mov ecx, dword [ecx + 0x54]
call fcn.004018a0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4fd1d8]
test eax, eax
je 0x4b3a20
cmp eax, 1
mov dword [0x4fd1d8], 0
setg al
test al, al
je 0x4b3a20
mov ecx, dword [0x4fd1d4]
push 0
mov dword [0x4fd1d8], 1
mov dword [ecx], ebx
mov ecx, esi
call fcn.004b3830
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4cd32e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004db810
mov eax, dword [0x4f8018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004d0cf3
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4cd370
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4cd4cc
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004db760
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4fb338]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004d2760
mov ecx, dword [esi*4 + 0x4fb338]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4cd4c5
cmp eax, dword [edi + ecx + 0x24]
jne 0x4cd4c5
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4cd4c5
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004d2760
add esp, 0x14
test edx, edx
jl 0x4cd4c5
jg 0x4cd43b
test eax, eax
jb 0x4cd4c5
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4cd4c5
jl 0x4cd455
cmp dword [ebp - 0x1008], eax
ja 0x4cd4c5
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4cd473
test ebx, ebx
je 0x4cd4ac
cmp ecx, edi
jae 0x4cd4ac
mov al, byte [ecx]
cmp al, 0xd
jne 0x4cd48d
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4cd499
cmp byte [ecx + 1], 0xa
jne 0x4cd499
inc ecx
jmp 0x4cd499
movzx eax, al
movsx eax, byte [eax + 0x4f8200]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4cd473
cmp edx, ebx
jne 0x4cd473
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4cd4ca
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004c14c9
leave
ret

Function at 0x4d15d2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4e185c
push 0x4e1854
push str.FlsAlloc
push 0x1e
call fcn.004d14b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d1606
push dword [ebp + 8]
mov ecx, esi
call dword [0x4de86c]
call esi
jmp 0x4d160c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4d1650
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4e186c
push 0x4e1864
push str.FlsGetValue
push 0x20
call fcn.004d14b0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4d1687
push dword [ebp + 8]
mov ecx, esi
call dword [0x4de86c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4d27dc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4fb338]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4d281c
cmp byte [ebx], 0xa
jne 0x4d281c
or byte [eax + edi + 0x28], 4
jmp 0x4d2821
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4d291f
mov al, byte [edx]
cmp al, 0x1a
je 0x4d2901
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4d2850
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4d2875
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4d287f
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4d2832
jmp 0x4d291f
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4d28fc
cmp dword [ebp - 0xc], 0
je 0x4d28fc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4fb338]
test byte [eax + edi + 0x28], 0x48
je 0x4d28d6
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4d28c1
mov byte [esi], dl
jmp 0x4d28d2
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4fb338]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4d291f
cmp byte [ebp - 1], 0xa
jne 0x4d28e5
cmp esi, ebx
jne 0x4d28e5
mov byte [esi], 0xa
jmp 0x4d291e
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004d277e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4d291f
mov byte [esi], 0xd
jmp 0x4d291e
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4fb338]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4d291b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4d291f
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret