joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b14c0
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 0x4b14eb
push 2
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [esp + 0x1c], eax
jmp 0x4b14f5
mov esi, dword [0x51eb40]
mov dword [esp + 0x1c], esi
test esi, esi
je 0x4b1686
test edi, edi
jns 0x4b150a
mov eax, edi
neg eax
movzx eax, ax
jmp 0x4b153b
test edi, edi
mov dword [esp + 0x2c], ebx
mov eax, 1
mov dword [esp + 0x30], 0x522bc4
cmovne eax, edi
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push 0x4b1490
push 0xe
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
mov eax, dword [esp + 0x30]
cmp eax, 0x522bc4
je 0x4b165f
push 0xe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x4b165f
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4b165f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, eax
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x4b165f
cmp dword [esp + 0x38], 0xffffffff
mov ebx, dword [esp + 0x3c]
cmovne ebx, dword [esp + 0x38]
test ebx, ebx
jne 0x4b159d
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 0x4b1659
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 0x4b15dc
cmp ebp, ebx
setl cl
jmp 0x4b15e1
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 0x4b15c7
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
test eax, eax
je 0x4b1659
movzx eax, word [eax + 0xc]
push 3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4b1659
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4b1659
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
test ebp, ebp
je 0x4b1659
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 0x4b165b
xor ebx, ebx
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4b1677
test ebx, ebx
je 0x4b1677
mov dword [eax], esi
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x24
ret
test ebp, ebp
je 0x4b1682
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
jne 0x4b166d
test edi, edi
jle 0x4b169f
lea eax, [edi - 1]
push eax
push ebp
push 0
call dword [sym.imp.SHELL32.dll_ExtractIconW]
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_ExtractIconW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
Function at 0x4b2b90
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, 0x810
push edi
push 0x800
lea eax, [esp + 0x18]
mov dword [esp + 8], edx
push 0
push eax
mov edi, ecx
call fcn.004cc590
add esp, 0xc
lea eax, [esp + 0x10]
push 0xf0000000
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x4b2d34
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 0x4b2d34
mov edx, dword [esp + 0x818]
test edx, edx
je 0x4b2c34
cmp dword [edx], 0
je 0x4b2c34
push esi
xor ecx, ecx
mov eax, edx
mov esi, 0x514318
nop dword [eax]
cmp edx, 0x51cacc
jne 0x4b2c1c
mov eax, esi
jmp 0x4b2c1e
mov eax, dword [eax]
mov ax, word [eax]
add esi, 0xa
mov word [esp + ecx*2 + 0x18], ax
inc ecx
cmp dword [edx + ecx*4], 0
lea eax, [edx + ecx*4]
jne 0x4b2c10
pop esi
lea ecx, [esp + 0x14]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4b2c40
sub ecx, edx
sar ecx, 1
push 0
lea eax, [ecx + ecx]
push eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4b2d34
push 0x800
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004cc590
mov ecx, dword [esp + 0x82c]
add esp, 0xc
mov edx, ecx
shl edx, 0x10
cmp ecx, 0x80
jne 0x4b2c9b
mov eax, 0x660e
jmp 0x4b2cab
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 0x4b2d34
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
test eax, eax
je 0x4b2d34
cmp byte [esp + 0x81c], 0
je 0x4b2cfc
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 [0x51eb04]
jmp 0x4b2d12
lea eax, [esp + 4]
push eax
push edi
push 0
push 1
push 0
push dword [esp + 0x20]
call dword [0x51eb00]
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, 0x810
ret
xor eax, eax
pop edi
add esp, 0x810
ret
Function at 0x4b3c40
Capabilities:
Write clipboard data

Disassembly:
sub esp, 8
push ebx
mov ebx, ecx
mov ecx, 0x5217c8
push esi
mov esi, edx
call fcn.00406c90
test eax, eax
jne 0x4b3c71
push 0x4f03e8
push str.Cant_open_clipboard_for_writing.
mov ecx, 0x520c68
call fcn.0044ddc0
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 0x4b3cf9
mov ecx, dword [ebx]
mov dword [esp + 0x10], ecx
test ecx, ecx
je 0x4b3cf9
mov edi, esi
add esi, 4
cmp esi, eax
ja 0x4b3cf9
mov edi, dword [edi]
mov ebx, esi
add esi, edi
cmp esi, eax
ja 0x4b3cf9
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 0x4b3dad
test edi, edi
je 0x4b3ce3
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4b3d48
push edi
push ebx
push eax
call fcn.004cc730
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 0x4b3c87
cmp dword [0x5217e0], 0
je 0x4b3d3b
cmp dword [0x5217d0], 0
je 0x4b3d21
push dword [0x5217c8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x5217d0], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x5217e0], 0
mov dword [0x5217c8], 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 [0x5217e0], 0
je 0x4b3d91
cmp dword [0x5217d0], 0
je 0x4b3d77
push dword [0x5217c8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x5217d0], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x5217e0], 0
mov dword [0x5217c8], 0
push 0x4f03e8
push 0x4f09d4
mov ecx, 0x520c68
call fcn.0044ddc0
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
cmp dword [0x5217e0], 0
je 0x4b3def
cmp dword [0x5217d0], 0
je 0x4b3dd5
push dword [0x5217c8]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov dword [0x5217d0], 0
call dword [sym.imp.USER32.dll_CloseClipboard]
mov dword [0x5217e0], 0
mov dword [0x5217c8], 0
push 0x4f03e8
push 0x504378
mov ecx, 0x520c68
call fcn.0044ddc0
pop edi
pop ebp
pop esi
pop ebx
add esp, 8
ret
Function at 0x4b4b80
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
movzx eax, word [edi]
cmp eax, 0x41
je 0x4b4b99
cmp eax, 0x61
jne 0x4b4c01
cmp word [edi + 2], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jne 0x4b4c09
cmp word [ecx], 0
jne 0x4b4c09
cmp word [eax], 0
jne 0x4b4c09
cmp word [ebp], 0
jne 0x4b4c09
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4b4c01
cmp byte [ebx + 0xea], 0
jne 0x4b4be6
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4b4c01
mov ecx, esi
call fcn.004b5fe0
test al, al
jne 0x4b4c01
push esi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x4b4bfa
push 9
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, esi
pop edi
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 0x4b4c33
cmp word [edi], 0
jne 0x4b4c33
cmp word [ecx], 0
jne 0x4b4c33
cmp word [eax], 0
jne 0x4b4c33
cmp word [ebp], 0
jne 0x4b4c33
mov ecx, ebx
call fcn.004b5440
jmp 0x4b4c4d
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.004b5280
add esp, 0x1c
test eax, eax
jne 0x4b4c56
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
mov ecx, eax
pop ebx
jmp fcn.004b4c70
Function at 0x4b5000
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 0x4b506a
lea eax, [esp + 0xc]
push eax
push 0x1f4
push 2
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
test eax, eax
jne 0x4b5077
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 0x4b5077
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4b5077
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4b5077
push 0
push 0
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
xor edi, edi
test ebx, ebx
cmovns edi, ebx
test edi, edi
je 0x4b50e3
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 [0x5203dc], ebx
jne 0x4b50b9
mov edx, 1
mov ecx, 0x8000012f
call fcn.00401860
jmp 0x4b50bd
push 0xa
call ebp
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b50db
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x18]
add ecx, edi
sub ecx, eax
cmp ecx, 5
jg 0x4b50a0
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 0x4b5280
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c6c
call fcn.004e88a0
mov eax, edx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 8], eax
movzx eax, word [eax]
push edi
mov edi, ecx
cmp eax, 0x41
je 0x4b52b1
cmp eax, 0x61
jne 0x4b5314
mov ecx, dword [esp + 0xc]
cmp word [ecx + 2], 0
jne 0x4b5314
cmp word [ebx], 0
jne 0x4b5314
cmp word [edx], 0
jne 0x4b5314
cmp word [esi], 0
jne 0x4b5314
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
test esi, esi
je 0x4b52fb
cmp byte [edi + 0xea], 0
jne 0x4b52fb
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4b52f9
mov ecx, esi
call fcn.004b5fe0
test al, al
je 0x4b52fb
xor esi, esi
cmp byte [ebp + 0x18], 0
je 0x4b530b
test esi, esi
je 0x4b530b
mov dword [edi + 0xc4], esi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test ax, ax
jne 0x4b5336
cmp word [ebx], ax
jne 0x4b5336
cmp word [edx], ax
jne 0x4b5336
cmp word [esi], ax
jne 0x4b5336
mov ecx, edi
call fcn.004b5440
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
call fcn.0044f7f0
push esi
push edx
push ebx
push dword [esp + 0x18]
push edi
call fcn.004b6130
test eax, eax
je 0x4b5402
test byte [esp + 0x10], 2
mov al, byte [ebp + 0x14]
mov byte [esp + 0x183d], al
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x184c], eax
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x1850], eax
je 0x4b540b
mov esi, dword [esp + 0x102c]
cmp esi, 0xffff
je 0x4b53da
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4b5402
cmp byte [edi + 0xea], 0
mov esi, dword [esp + 0x102c]
jne 0x4b53da
push esi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x4b53bd
mov ecx, esi
call fcn.004b5fe0
test al, al
je 0x4b53d3
push 0xfffffffffffffff0
push dword [esp + 0x1030]
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, 0x40000000
je 0x4b5402
mov esi, dword [esp + 0x102c]
cmp dword [esp + 0x1864], esi
je 0x4b53f3
lea ecx, [esp + 0x10]
mov dword [esp + 0x1864], esi
call fcn.004b65b0
push 0
lea ecx, [esp + 0x14]
call fcn.004b6690
test eax, eax
jne 0x4b541b
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
push 0x4b54e0
call dword [sym.imp.USER32.dll_EnumWindows]
cmp byte [ebp + 0x18], 0
mov eax, dword [esp + 0x1844]
je 0x4b5404
test eax, eax
je 0x4b5404
mov dword [edi + 0xc4], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b65b0
Capabilities:
Get graphical window text

Disassembly:
push ecx
push esi
mov esi, ecx
mov ecx, dword [esi + 0x1854]
test ecx, ecx
je 0x4b6689
mov eax, dword [esi]
test eax, eax
je 0x4b6689
push edi
test al, 1
jne 0x4b65dd
mov eax, dword [esi + 0x100c]
cmp word [eax], 0
je 0x4b65f7
push 0x7fff
lea edi, [esi + 0x1860]
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x4b65f7
mov word [edi], ax
mov eax, dword [esi]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test al, 4
je 0x4b6614
lea eax, [esi + 0x185c]
push eax
push dword [esi + 0x1854]
call edi
mov eax, dword [esi]
test al, 0x20
je 0x4b664f
lea eax, [esp + 8]
push eax
push dword [esi + 0x1854]
call edi
test eax, eax
je 0x4b664f
movzx eax, byte [esi + 0x182c]
lea edx, [esi + 0x11a60]
push eax
push ecx
mov ecx, dword [esp + 0x10]
call fcn.0047b510
add esp, 8
test eax, eax
jne 0x4b664f
mov word [esi + 0x11a60], ax
mov eax, dword [esi]
pop edi
test al, 8
je 0x4b6670
push 0x101
lea eax, [esi + 0x1185e]
push eax
push dword [esi + 0x1854]
call dword [sym.imp.USER32.dll_GetClassNameW]
mov eax, dword [esi]
test eax, 0x100
je 0x4b6689
push dword [esi + 0x1854]
call dword [sym.imp.USER32.dll_GetParent]
mov dword [esi + 0x1858], eax
pop esi
pop ecx
ret

Function at 0x4b6fa0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c68
call fcn.004e88a0
mov edx, dword [ecx + 8]
test edx, edx
je 0x4b703b
lea ecx, [esp]
call fcn.0044f7f0
mov al, byte [ebp + 8]
mov byte [esp + 0x1848], al
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x184c], eax
mov eax, ecx
push eax
push 0x4b7780
mov dword [esp + 0x184c], edx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [esp + 0x1834], 0
je 0x4b703b
mov eax, dword [0x51b98c]
cmp dword [eax + 0x54], 0xffffffff
jle 0x4b703b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x5203dc], eax
je 0x4b7028
mov eax, dword [0x51b98c]
push dword [eax + 0x54]
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 1
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [0x51b98c]
mov edx, 1
mov ecx, dword [ecx + 0x54]
call fcn.00401860
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x4b7320
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11c74
call fcn.004e88a0
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi + 8], 0
je 0x4b7510
push 0
call fcn.004b7520
test eax, eax
jne 0x4b7353
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push dword [0x51b98c]
mov ebx, eax
mov ecx, esi
push ebx
call fcn.004b75c0
mov edx, dword [0x5203d4]
xor ecx, ecx
test eax, eax
cmovne edx, ecx
lea ecx, [esp + 0x18]
mov dword [0x5203d4], edx
call fcn.0044f7f0
cmp byte [ebp + 8], 0
je 0x4b7397
mov byte [esp + 0x1845], 0
test edx, edx
je 0x4b739f
mov byte [esp + 0x1845], 1
mov eax, dword [0x5203d0]
mov edi, dword [sym.imp.USER32.dll_EnumWindows]
mov dword [esp + 0x1854], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x185c], eax
lea eax, [esp + 0x18]
push eax
push 0x4b7650
mov dword [esp + 0x1860], edx
call edi
mov eax, dword [esp + 0x184c]
test eax, eax
je 0x4b74d8
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push 0x4b5f20
mov dword [esp + 0x1c], 0
call edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x4b743b
mov ecx, dword [0x5203d4]
xor eax, eax
mov edx, dword [esp + 0x184c]
mov esi, dword [0x5203d0]
test ecx, ecx
jle 0x4b7420
cmp dword [esi + eax*4], edx
je 0x4b7432
inc eax
cmp eax, ecx
jl 0x4b7416
cmp ecx, 0x1f4
jge 0x4b7432
mov dword [esi + ecx*4], edx
inc ecx
mov dword [0x5203d4], ecx
mov dword [esp + 0x184c], edi
jmp 0x4b7442
mov edi, dword [esp + 0x184c]
mov ecx, edi
call fcn.004b4c70
mov ecx, dword [0x5203d4]
xor eax, eax
mov edx, dword [esp + 0x184c]
mov esi, dword [0x5203d0]
test ecx, ecx
jle 0x4b746c
cmp dword [esi + eax*4], edx
je 0x4b747e
inc eax
cmp eax, ecx
jl 0x4b7462
cmp ecx, 0x1f4
jge 0x4b747e
mov dword [esi + ecx*4], edx
inc ecx
mov dword [0x5203d4], ecx
mov eax, dword [0x51b98c]
cmp dword [eax + 0x54], 0xffffffff
jle 0x4b7510
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x5203dc], eax
je 0x4b74b7
mov eax, dword [0x51b98c]
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 [0x51b98c]
mov edx, 1
mov ecx, dword [ecx + 0x54]
call fcn.00401860
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x5203d4]
test eax, eax
je 0x4b7510
cmp eax, 1
mov dword [0x5203d4], 0
setg al
test al, al
je 0x4b7510
mov ecx, dword [0x5203d0]
push 0
mov dword [0x5203d4], 1
mov dword [ecx], ebx
mov ecx, esi
call fcn.004b7320
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4da8f9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004e88a0
mov eax, dword [0x51b018]
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.004de149
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4da93b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4daa97
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004e87f0
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 + 0x51e488]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004dfbce
mov ecx, dword [esi*4 + 0x51e488]
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 0x4daa90
cmp eax, dword [edi + ecx + 0x24]
jne 0x4daa90
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 0x4daa90
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004dfbce
add esp, 0x14
test edx, edx
jl 0x4daa90
jg 0x4daa06
test eax, eax
jb 0x4daa90
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4daa90
jl 0x4daa20
cmp dword [ebp - 0x1008], eax
ja 0x4daa90
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4daa3e
test ebx, ebx
je 0x4daa77
cmp ecx, edi
jae 0x4daa77
mov al, byte [ecx]
cmp al, 0xd
jne 0x4daa58
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4daa64
cmp byte [ecx + 1], 0xa
jne 0x4daa64
inc ecx
jmp 0x4daa64
movzx eax, al
movsx eax, byte [eax + 0x51b200]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4daa3e
cmp edx, ebx
jne 0x4daa3e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4daa95
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004cb3d9
leave
ret

Function at 0x4de9ef
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ee8b0
push 0x4ee8a8
push str.FlsAlloc
push 0x1e
call fcn.004de8ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4dea23
push dword [ebp + 8]
mov ecx, esi
call dword [0x4eb86c]
call esi
jmp 0x4dea29
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4dea6d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4ee8c0
push 0x4ee8b8
push str.FlsGetValue
push 0x20
call fcn.004de8ec
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4deaa4
push dword [ebp + 8]
mov ecx, esi
call dword [0x4eb86c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4dfc4a
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 + 0x51e488]
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 0x4dfc8a
cmp byte [ebx], 0xa
jne 0x4dfc8a
or byte [eax + edi + 0x28], 4
jmp 0x4dfc8f
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4dfd8d
mov al, byte [edx]
cmp al, 0x1a
je 0x4dfd6f
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4dfcbe
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4dfce3
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4dfced
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 0x4dfca0
jmp 0x4dfd8d
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 0x4dfd6a
cmp dword [ebp - 0xc], 0
je 0x4dfd6a
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x51e488]
test byte [eax + edi + 0x28], 0x48
je 0x4dfd44
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4dfd2f
mov byte [esi], dl
jmp 0x4dfd40
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x51e488]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4dfd8d
cmp byte [ebp - 1], 0xa
jne 0x4dfd53
cmp esi, ebx
jne 0x4dfd53
mov byte [esi], 0xa
jmp 0x4dfd8c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004dfbec
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4dfd8d
mov byte [esi], 0xd
jmp 0x4dfd8c
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x51e488]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4dfd89
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4dfd8d
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret