joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1c00
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x53b100
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
xor ebx, ebx
push 0x54e04a
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], ebx
call fcn.004018f0
push 0x54e04a
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], ebx
call fcn.004018f0
push 0x10
push 1
push ebx
mov byte [esp + 0x30], 1
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, ebx
je 0x4a1d7b
push eax
push ebx
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, ebx
je 0x4a1d7b
push edi
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
mov edi, eax
cmp edi, ebx
je 0x4a1d7a
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0x54e018
push edi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4a1d7a
mov esi, dword [esp + 0x10]
mov edx, dword [esi + 0x1c]
and edx, dword [esi + 0x18]
test dl, 0x20
je 0x4a1cd5
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x54ee88
push edi
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4a1cd5
mov edx, dword [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
call fcn.004018b0
cmp dword [esp + 0x34], 1
jne 0x4a1d54
mov ax, word [esi + 0x14]
cmp ax, bx
jne 0x4a1d08
movzx eax, word [esi + 0x16]
movzx ecx, word [esi + 0x10]
movzx edx, word [esi + 0x12]
push eax
push ecx
push edx
lea eax, [esp + 0x18]
push 0x55c440
push eax
call fcn.00404c00
add esp, 0x14
jmp 0x4a1d7a
cmp ax, 0x64
jae 0x4a1d31
movzx ecx, word [esi + 0x14]
movzx edx, word [esi + 0x16]
movzx eax, word [esi + 0x10]
add ecx, 0x60
push ecx
movzx ecx, word [esi + 0x12]
push edx
push eax
push ecx
push 0x55c434
lea edx, [esp + 0x20]
push edx
jmp 0x4a1d72
movzx eax, word [esi + 0x14]
movzx ecx, word [esi + 0x16]
movzx edx, word [esi + 0x10]
sub eax, 0x64
push eax
movzx eax, word [esi + 0x12]
push ecx
push edx
push eax
push 0x55c420
lea ecx, [esp + 0x20]
push ecx
jmp 0x4a1d72
movzx edx, word [esi + 0x14]
movzx eax, word [esi + 0x16]
movzx ecx, word [esi + 0x10]
push edx
movzx edx, word [esi + 0x12]
push eax
push ecx
push edx
push 0x54ee7c
lea eax, [esp + 0x20]
push eax
call fcn.00404c00
add esp, 0x18
pop edi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
push eax
call fcn.00402ae0
mov esi, dword [esp + 0x30]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a1db6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 8]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4a1ddc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x4a71e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x53baf5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
lea ecx, [esi + 0xd90]
mov dword [esp + 0x10], 0x28
call fcn.00520aa8
lea ecx, [esi + 0xd40]
mov byte [esp + 0x10], 0x27
call fcn.00520807
lea ecx, [esi + 0xcf0]
mov byte [esp + 0x10], 0x26
call fcn.00520807
lea ecx, [esi + 0xca0]
mov byte [esp + 0x10], 0x25
call fcn.00520807
lea ecx, [esi + 0xc50]
mov byte [esp + 0x10], 0x24
call fcn.00520807
lea ecx, [esi + 0xc00]
mov byte [esp + 0x10], 0x23
call fcn.00520807
lea ecx, [esi + 0xbb0]
mov byte [esp + 0x10], 0x22
call fcn.00520807
lea ecx, [esi + 0xb60]
mov byte [esp + 0x10], 0x21
call fcn.00520807
lea ecx, [esi + 0xb10]
mov byte [esp + 0x10], 0x20
call fcn.00520807
lea ecx, [esi + 0xac0]
mov byte [esp + 0x10], 0x1f
call fcn.004ff28f
lea ecx, [esi + 0xa70]
mov byte [esp + 0x10], 0x1e
call fcn.00520aa8
lea ecx, [esi + 0xa20]
mov byte [esp + 0x10], 0x1d
call fcn.00520807
mov byte [esp + 0x10], 0x1c
lea ecx, [esi + 0x9d0]
call fcn.00520807
lea ecx, [esi + 0x980]
mov byte [esp + 0x10], 0x1b
call fcn.00520807
lea ecx, [esi + 0x930]
mov byte [esp + 0x10], 0x1a
call fcn.005209e7
lea ecx, [esi + 0x8e0]
mov byte [esp + 0x10], 0x19
call fcn.005209e7
lea ecx, [esi + 0x890]
mov byte [esp + 0x10], 0x18
call fcn.00520807
lea ecx, [esi + 0x840]
mov byte [esp + 0x10], 0x17
call fcn.00520807
lea ecx, [esi + 0x7f0]
mov byte [esp + 0x10], 0x16
call fcn.00520807
lea ecx, [esi + 0x70c]
mov byte [esp + 0x10], 0x15
call fcn.004ca790
lea ecx, [esi + 0x6b8]
mov byte [esp + 0x10], 0x14
call fcn.004ca790
lea ecx, [esi + 0x664]
mov byte [esp + 0x10], 0x13
call fcn.004ca790
lea ecx, [esi + 0x610]
mov byte [esp + 0x10], 0x12
call fcn.004ca790
lea ecx, [esi + 0x5c0]
mov byte [esp + 0x10], 0x11
call fcn.004ff28f
lea ecx, [esi + 0x570]
mov byte [esp + 0x10], 0x10
call fcn.004ff28f
lea ecx, [esi + 0x520]
mov byte [esp + 0x10], 0xf
call fcn.004ff28f
lea ecx, [esi + 0x4d0]
mov byte [esp + 0x10], 0xe
call fcn.00520807
lea ecx, [esi + 0x480]
mov byte [esp + 0x10], 0xd
call fcn.00520807
lea ecx, [esi + 0x430]
mov byte [esp + 0x10], 0xc
call fcn.005209e7
lea ecx, [esi + 0x3e0]
mov byte [esp + 0x10], 0xb
call fcn.00520807
lea ecx, [esi + 0x390]
mov byte [esp + 0x10], 0xa
call fcn.00520aa8
lea ecx, [esi + 0x340]
mov byte [esp + 0x10], 9
call fcn.004ff28f
lea ecx, [esi + 0x2f0]
mov byte [esp + 0x10], 8
call fcn.00520789
lea ecx, [esi + 0x2a0]
mov byte [esp + 0x10], 7
call fcn.004ff35b
lea ecx, [esi + 0x250]
mov byte [esp + 0x10], 6
call fcn.00520789
lea ecx, [esi + 0x200]
mov byte [esp + 0x10], 5
call fcn.00520789
lea ecx, [esi + 0x1b0]
mov byte [esp + 0x10], 4
call fcn.004ff35b
lea ecx, [esi + 0x160]
mov byte [esp + 0x10], 3
call fcn.00520789
lea ecx, [esi + 0x110]
mov byte [esp + 0x10], 2
call fcn.00520789
mov byte [esp + 0x10], 1
lea ecx, [esi + 0xc0]
call fcn.00520807
lea ecx, [esi + 0x70]
mov byte [esp + 0x10], 0
call fcn.00520807
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
call fcn.00504451
mov ecx, dword [esp + 8]
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4d0700
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x53e9f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 4]
mov dword [esp + 8], esi
mov dword [esi], 0x560d0c
call fcn.0050207d
lea ecx, [esi + 0x18]
mov dword [esp + 0x14], 0
call fcn.0050207d
mov byte [esp + 0x14], 1
lea edi, [esi + 0x34]
call fcn.00503c89
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [edi], eax
push 0x10
push 0x560d18
mov ecx, edi
mov byte [esp + 0x1c], 2
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00401720
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4d33d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4d33db
xor eax, eax
ret
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x4d34d3
mov ebp, edi
shr ebp, 3
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
sub edi, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x562778]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x562778]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x562778]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x562778]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x562778]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x562778]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x562778]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x562778]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x4d33f6
test edi, edi
je 0x4d34f2
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + 0x562778]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x4d34d7
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret

Function at 0x4d3500
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [esp + 8]
push esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x562778]
shr ecx, 8
xor eax, ecx
mov ecx, dword [edx + 4]
mov dword [edx], eax
and eax, 0xff
add eax, ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
mov esi, dword [eax*4 + 0x562778]
shr ecx, 8
xor ecx, esi
mov dword [edx + 8], ecx
pop esi
ret

Function at 0x4d3580
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
mov edx, dword [esi + 8]
mov eax, edx
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov al, byte [esp + 0xc]
shr ecx, 8
xor al, cl
xor ecx, ecx
push edi
mov edi, dword [esi]
mov cl, al
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x562778]
shr edi, 8
xor ecx, edi
mov edi, dword [esi + 4]
mov dword [esi], ecx
and ecx, 0xff
add ecx, edi
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
mov edi, dword [ecx*4 + 0x562778]
shr edx, 8
xor edx, edi
pop edi
mov dword [esi + 8], edx
pop esi
ret
Function at 0x4d3b30
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
mov cl, byte [ebx]
push ebp
mov ebp, dword [esp + 0x10]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x4d3b71
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x4d3b66
mov byte [ebx + 8], 1
mov eax, dword [esp + 0x10]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
push esi
lea esi, [edx + eax]
cmp esi, ecx
push edi
jbe 0x4d3b84
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x14]
mov edi, dword [esp + 0x14]
add esi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x1c]
pop edi
add ecx, eax
pop esi
xor edx, edx
div ebp
pop ebp
mov dword [ebx + 0x1c], ecx
pop ebx
ret

Function at 0x4d5320
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x590f68]
push ebx
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [esp + 0x220], eax
push edi
je 0x4d5357
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4d5357
push 0
push esi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
mov ebx, dword [ebp + 0xc]
mov cl, byte [ebx]
test cl, cl
je 0x4d5425
mov eax, ebx
mov edx, ebx
cmp cl, 0x2f
je 0x4d5372
cmp cl, 0x5c
jne 0x4d5374
mov eax, edx
mov cl, byte [edx + 1]
inc edx
test cl, cl
jne 0x4d5368
cmp eax, ebx
je 0x4d53ba
sub eax, ebx
mov ecx, eax
mov edx, ecx
shr ecx, 2
mov esi, ebx
lea edi, [esp + 0x118]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 8]
mov byte [esp + eax + 0x118], 0
lea eax, [esp + 0x118]
push eax
push ecx
call fcn.004d5320
mov esi, dword [ebp + 8]
add esp, 8
test esi, esi
mov byte [esp + 0x10], 0
je 0x4d53da
lea edx, [esp + 0x10]
mov eax, esi
sub edx, esi
jmp 0x4d53d0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4d53d0
mov eax, ebx
mov edx, ebx
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d53e0
lea edi, [esp + 0x10]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4d53f0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0x10]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4d5425
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x224]
call fcn.004e9911
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4d7060
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
je 0x4d7074
cmp dword [edi + 0x18], ebx
jne 0x4d707f
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x7c], ebx
je 0x4d708d
push edi
call fcn.004d49b0
add esp, 4
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
call fcn.004d46c0
add esp, 0x10
test eax, eax
je 0x4d70b4
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push esi
push 0x84
call fcn.004ea96f
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x4d70f5
push 0x4000
call fcn.004ea96f
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add esp, 4
cmp eax, ebx
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x4d7101
push esi
call fcn.004ea481
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp edx, ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x4d714f
lea eax, [esi + 4]
push eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.004d3830
add esp, 4
test eax, eax
jne 0x4d714f
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x4d7179
mov dl, byte [edi + 0x39]
mov byte [esi + 0x80], dl
jmp 0x4d7182
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov cl, byte [esi + 0x6c]
neg cl
push ebp
mov ebp, dword [esp + 0x20]
lea ebx, [esi + 0x70]
mov dword [ebx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
sbb ecx, ecx
and ecx, 0xc
test ebp, ebp
mov dword [esi + 0x7c], ecx
je 0x4d71c6
nop
xor eax, eax
mov al, byte [ebp]
test al, al
je 0x4d71c6
push eax
push ebx
call fcn.004d3500
add esp, 8
inc ebp
jne 0x4d71b0
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
lea ecx, [edx + eax + 0x1e]
pop ebp
mov dword [esi + 0x3c], ecx
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x4d74b0
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, ecx
cmp dword [ebx], 0
jne 0x4d757f
cmp dword [ebx + 4], 0xffffffff
jne 0x4d757f
push edi
lea edi, [ebx + 0x140]
push edi
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4d74e0
sub eax, edx
mov al, byte [eax + ebx + 0x13f]
cmp al, 0x5c
je 0x4d7511
cmp al, 0x2f
je 0x4d7511
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4d7500
mov ax, word [0x54e018]
mov word [edi], ax
mov edi, dword [esp + 0x14]
cmp edi, 1
push esi
mov esi, dword [esp + 0x10]
jne 0x4d753c
push 1
push 0
push 0
push esi
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4d753c
pop esi
pop edi
mov eax, 0x2000000
pop ebx
ret 0xc
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
push esi
call fcn.004d38f0
add esp, 0x10
test eax, eax
jne 0x4d755e
mov eax, dword [esp + 0x18]
pop esi
pop edi
pop ebx
ret 0xc
push eax
call fcn.004d6e60
add esp, 4
xor ecx, ecx
test eax, eax
setne cl
pop esi
mov dword [ebx], eax
pop edi
pop ebx
dec ecx
and ecx, 0x200
mov eax, ecx
ret 0xc
mov eax, 0x1000000
pop ebx
ret 0xc
Function at 0x4d9620
Capabilities:
Access peb ldr_data
Get file size
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x53f1c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov esi, ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
call fcn.00503c89
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x690]
mov ecx, dword [eax]
lea edx, [esp + 0x18]
push edx
push 0x54d280
push eax
mov dword [esp + 0x34], ebp
call dword [ecx]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
push 0x90000
push eax
call dword [ecx + 0x28]
mov edi, dword [esp + 0x30]
cmp edi, 0xffffffff
mov ebx, dword [sym.imp.user32.dll_SendMessageA]
jne 0x4d96a4
mov edx, dword [esi + 0xb8]
push ebp
push ebp
push 0x147
push edx
call ebx
jmp 0x4d96a6
mov eax, edi
cmp eax, 0xffffffff
jle 0x4d97f0
cmp edi, 0xffffffff
jne 0x4d9713
push ebp
push eax
mov eax, dword [esi + 0xb8]
push 0x150
push eax
call ebx
mov edi, eax
cmp edi, ebp
jl 0x4d9831
cmp edi, dword [esi + 0x90]
jge 0x4d9831
mov eax, dword [esi + 0x8c]
lea ebx, [edi*4]
add eax, ebx
push eax
lea ecx, [esp + 0x14]
call fcn.00402e60
mov ecx, dword [esp + 0x10]
push ecx
lea ecx, [esi + 0x63c]
call fcn.005093d7
cmp edi, dword [esi + 0x7c]
jge 0x4d9831
mov eax, dword [esi + 0x78]
add eax, ebx
jmp 0x4d9731
cmp edi, dword [esi + 0x7c]
jl 0x4d971a
xor edi, edi
cmp edi, ebp
jl 0x4d9831
cmp edi, dword [esi + 0x7c]
jge 0x4d9831
mov edx, dword [esi + 0x78]
lea eax, [edx + edi*4]
lea ecx, [esp + 0x10]
push eax
call fcn.00402e60
mov eax, dword [esp + 0x10]
push ebp
push 0x80
push 3
push ebp
push 1
push 0x80000000
push eax
mov dword [esi + 0x6c0], edi
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x30], edi
je 0x4d97f0
push ebp
push edi
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4d97e9
lea edi, [ebp + 2]
push edi
call fcn.005043e5
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4d97e5
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
push 0
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x34]
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x4d97dc
mov esi, dword [esi + 0x690]
mov edx, dword [esi]
lea eax, [esp + 0x14]
push eax
push ebx
push esi
call dword [edx + 0x14]
test eax, eax
jge 0x4d97dc
push 0
push 0
push 0x56375c
call fcn.00515e6f
push ebx
call fcn.005043e0
add esp, 4
mov edi, dword [esp + 0x30]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4d981a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
call fcn.004fd76e
int3
Function at 0x4e2178
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x53faae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
push esi
mov dword [esp + 0x14], esi
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, dword [esp + 0x38]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x34]
xor edi, edi
cmp eax, edi
lea ebp, [esi + 0x1c]
mov dword [esp + 0x1c], edi
mov dword [esi + 0x18], ebx
mov dword [ebp], edi
je 0x4e21b2
cmp ecx, 1
jle 0x4e21b2
mov eax, 1
jmp 0x4e21b4
xor eax, eax
mov dword [esi + 0x24], ecx
push edi
lea ecx, [esi + 0x30]
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
call fcn.004e2330
mov al, byte [esp + 0x44]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], 1
mov byte [esi + 0x4c], al
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
cmp dword [ecx], edi
mov byte [esp + 0x1c], 1
jl 0x4e22e3
mov edx, dword [ebx]
push ebp
push 0x565500
push ebx
call dword [edx]
cmp eax, edi
mov ebx, dword [esp + 0x28]
mov dword [ebx], eax
jl 0x4e22e3
cmp dword [esp + 0x2c], edi
je 0x4e223b
mov ebp, dword [ebp]
mov eax, dword [ebp]
push ebp
call dword [eax + 0x20]
cmp eax, edi
jl 0x4e223b
xor ecx, ecx
cmp eax, edi
sete cl
mov ebp, ecx
jmp 0x4e223f
mov ebp, dword [esp + 0x30]
mov edx, dword [esi + 0x24]
shl edx, 2
push edx
call fcn.005043e5
add esp, 4
cmp eax, edi
mov dword [esi + 0x38], eax
je 0x4e22a5
cmp ebp, edi
je 0x4e22e3
push edi
push 0x7fffffff
push edi
push edi
call dword [sym.imp.kernel32.dll_CreateSemaphoreA]
cmp eax, edi
mov dword [esi + 0x2c], eax
je 0x4e22c8
push 0x18
call fcn.005043b5
mov ebp, eax
add esp, 4
mov dword [esp + 0x44], ebp
cmp ebp, edi
mov byte [esp + 0x1c], 2
je 0x4e229c
mov eax, dword [esp + 0x3c]
push eax
push edi
mov ecx, ebp
call fcn.004e3570
mov eax, ebp
jmp 0x4e229e
xor eax, eax
cmp eax, edi
mov dword [esi + 0x28], eax
jne 0x4e22ad
mov dword [ebx], 0x8007000e
jmp 0x4e22e3
lea ecx, [esp + 0x28]
push ecx
push edi
push esi
push 0x4e2130
push edi
push edi
call dword [sym.imp.kernel32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x34], eax
jne 0x4e22d7
call dword [sym.imp.kernel32.dll_GetLastError]
or eax, 0x80070000
mov dword [ebx], eax
jmp 0x4e22e3
mov edx, dword [esp + 0x40]
push edx
push eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x24