joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4999e4
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x54c1e0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x208], 0
lea eax, [ebp - 0x25c]
push esi
push edi
push 0x44
push 0
push eax
mov edi, edx
mov esi, ecx
call fcn.00528650
add esp, 0xc
mov dword [ebp - 0x25c], 0x44
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff6
mov dword [ebp - 0x21c], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
mov dword [ebp - 0x224], eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push ecx
push esi
push ecx
mov edx, 0x200
mov dword [ebp - 0x220], eax
lea ecx, [ebp - 0x204]
call fcn.0049999d
test eax, eax
jne 0x499b17
push 0x43f070
lea ecx, [ebp - 0x204]
call fcn.0049994c
test eax, eax
jne 0x499b17
push edi
lea ecx, [ebp - 0x204]
call fcn.0049994c
test eax, eax
jne 0x499b17
push 0x43f074
lea ecx, [ebp - 0x204]
call fcn.0049994c
test eax, eax
jne 0x499b17
lea eax, [ebp - 0x218]
xor ecx, ecx
push eax
lea eax, [ebp - 0x25c]
push eax
push ecx
push ecx
push ecx
push 1
push ecx
push ecx
lea eax, [ebp - 0x204]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x499b12
push 0xffffffffffffffff
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x208]
jmp 0x499b17
mov eax, 0x95e
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.005261ea
leave
ret
Function at 0x49da5a
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov esi, ecx
call fcn.0049ef71
mov ecx, esi
call fcn.0049ef71
mov bl, al
mov ecx, esi
mov byte [esp + 0xc], bl
mov edi, dword [esp + 0xc]
push edi
call fcn.0049f19a
cmp eax, 0xb
jne 0x49da9c
mov ecx, esi
call fcn.0049d8f2
mov bl, al
mov byte [esp + 0xc], bl
mov edi, dword [esp + 0xc]
movzx eax, bl
mov ecx, esi
push edi
mov dword [0x54d450], eax
call fcn.0049d668
mov ecx, esi
call fcn.0049ef71
movzx eax, al
mov ecx, esi
push eax
call fcn.0049f19a
cmp eax, 0xf
jne 0x49dacf
pop edi
pop esi
mov eax, 0x1db
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, 0x83c
xor edx, edx
mov ecx, esi
call fcn.0049f460
push esi
call fcn.0051233a
int3
Function at 0x49df92
Capabilities:
Terminate process

Disassembly:
push 0x3c
mov eax, 0x5309ff
call fcn.00527194
mov esi, ecx
call fcn.0049d687
mov al, byte [esi + 8]
test al, al
jne 0x49dfb4
call fcn.0049b70b
mov byte [esi + 8], al
cmp al, 0x28
je 0x49dfef
mov edx, 0x43f8d0
mov ecx, 0x7e9
call fcn.0049f460
mov al, byte [esi + 8]
test al, al
jne 0x49dfd6
call fcn.0049b70b
mov byte [esi + 8], al
movzx eax, al
mov ecx, esi
mov word [esi], ax
mov byte [esi + 2], 1
call fcn.0049ef71
movzx eax, al
jmp 0x49e137
mov ecx, esi
call fcn.0049ef71
xor edi, edi
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x38], edi
and dword [ebp - 0x2c], eax
mov dword [ebp - 0x34], ebx
mov word [ebp - 0x30], ax
mov ecx, esi
call fcn.0049d687
mov al, byte [esi + 8]
test al, al
jne 0x49e01f
call fcn.0049b70b
mov byte [esi + 8], al
mov cl, al
cmp al, 0x2c
jne 0x49e02e
mov ecx, esi
call fcn.0049ef71
jmp 0x49e009
test al, al
jne 0x49e03c
call fcn.0049b70b
mov byte [esi + 8], al
mov cl, al
cmp al, 0x29
je 0x49e11f
test cl, cl
jne 0x49e05a
call fcn.0049b70b
mov cl, al
mov byte [esi + 8], cl
test cl, cl
je 0x49e13d
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0049d6c2
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x49e0ea
mov edx, 0x43f8ec
lea ecx, [ebp - 0x28]
call fcn.00490ca7
test al, al
je 0x49e088
or edi, 0x10000000
jmp 0x49e09f
mov edx, 0x43f8f8
lea ecx, [ebp - 0x28]
call fcn.00490ca7
test al, al
je 0x49e0a7
or edi, 0x20000000
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], ebx
jmp 0x49e0d9
mov edx, 0x43a284
lea ecx, [ebp - 0x28]
call fcn.00490ca7
test al, al
je 0x49e0bb
int3
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0049ddeb
push eax
lea ecx, [ebp - 0x38]
call fcn.004a3f2c
mov ebx, dword [ebp - 0x34]
mov edi, dword [ebp - 0x38]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0047c9d0
jmp 0x49e009
mov edx, 0x43f8b0
mov ecx, 0x7e9
call fcn.0049f460
mov ecx, esi
call fcn.0049ca25
push 0x29
movzx eax, ax
pop ecx
cmp cx, ax
je 0x49e115
mov ecx, 0x271
cmp cx, ax
jne 0x49e0f9
lea ecx, [ebp - 0x28]
call fcn.0047c9d0
jmp 0x49e126
mov ecx, esi
call fcn.0049ef71
mov edi, 0x54d450
lea esi, [ebp - 0x38]
mov eax, 0x21a
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0052713e
ret
mov esi, 0x83d
xor edx, edx
mov ecx, esi
call fcn.0049f460
push esi
call fcn.0051233a
int3
Function at 0x49f200
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x54c1e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
inc ebx
push edi
cmp dword [0x5504d0], esi
je 0x49f2dd
push 6
lea eax, [ebp - 0xc]
push eax
push 0x80001004
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x49f268
lea eax, [ebp - 0xc]
push eax
call fcn.00508b4b
pop ecx
mov esi, eax
lea edi, [ebx + 0x7f]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_IsDBCSLeadByteEx]
mov byte [edi + 0x5503d0], al
inc edi
cmp edi, 0x100
jl 0x49f24c
mov esi, dword [ebp + 8]
jmp 0x49f2dd
movzx ecx, si
mov eax, ecx
and eax, 0x3ff
sub eax, 4
je 0x49f2bd
sub eax, 0xd
je 0x49f29a
sub eax, 1
je 0x49f286
push 3
pop ebx
jmp 0x49f2dd
mov cl, 0x81
movzx eax, cl
inc cl
mov byte [eax + 0x5503d0], bl
cmp cl, 0xfe
jbe 0x49f288
jmp 0x49f2dd
push 7
mov edx, 0x1010101
mov edi, 0x550451
pop ecx
mov eax, edx
rep stosd dword es:[edi], eax
push 7
pop ecx
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, edx
mov edi, 0x5504b0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
jmp 0x49f2dd
and ecx, 0xfc00
mov eax, 0x800
cmp cx, ax
jne 0x49f2dd
push 0x5e
push ebx
push 0x550471
call fcn.00528650
add esp, 0xc
mov eax, dword [0x5504d0]
cmp eax, 0xffffffff
je 0x49f2f2
cmp eax, esi
je 0x49f2f2
test esi, esi
je 0x49f2f2
push 2
pop ebx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
mov dword [0x5504d0], esi
xor ecx, ebp
pop esi
pop ebx
call fcn.005261ea
leave
ret 4

Function at 0x4a0d28
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
mov edx, esi
push edi
mov dword [ebp - 8], ecx
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x4a0d44
mov edx, dword [esi]
push ebx
add eax, eax
push eax
call fcn.0047fe16
mov ecx, dword [esi + 0x18]
mov edi, eax
and ecx, 0x1ff
mov esi, 0x811c9dc5
mov dword [ebp - 4], ecx
mov ebx, esi
xor ecx, ecx
mov edx, ecx
movzx eax, byte [ebp + edx - 4]
xor eax, ebx
imul ebx, eax, 0x1000193
inc edx
cmp edx, 4
jb 0x4a0d66
mov dword [ebp - 4], ebx
pop ebx
movzx eax, byte [ebp + ecx - 4]
xor eax, esi
imul esi, eax, 0x1000193
inc ecx
cmp ecx, 4
jb 0x4a0d7d
mov ecx, edi
add esi, 0x9e3779b9
shl ecx, 6
mov eax, edi
add ecx, esi
shr eax, 2
add eax, ecx
mov ecx, dword [ebp - 8]
xor eax, edi
pop edi
pop esi
and eax, dword [ecx + 0x18]
leave
ret 4
Function at 0x4bb0c5
Capabilities:
Hash data via bcrypt

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x54c1e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push 0x55050a
xor esi, esi
mov dword [ebp - 0x20], edx
push 0xc
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], esi
call fcn.0052697d
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x4bb106
and dword [ebx], esi
and dword [ebx + 4], esi
and dword [ebx + 8], esi
jmp 0x4bb108
xor ebx, ebx
test ebx, ebx
jne 0x4bb116
mov edi, 0x8007000e
jmp 0x4bb250
mov ecx, ebx
call fcn.004bbd84
mov edi, eax
test edi, edi
jns 0x4bb12d
push ecx
mov ecx, ebx
call fcn.004bbe0a
jmp 0x4bb134
mov esi, ebx
xor edi, edi
mov dword [ebp - 0x1c], esi
test edi, edi
js 0x4bb250
mov esi, 0x448bb0
lea edi, [ebp - 0x14]
push 0
push 0x10
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
mov edx, ecx
mov esi, dword [ebp - 0x1c]
mov eax, ecx
rol word [ebp - 0x10], 8
and edx, 0xff0000
rol word [ebp - 0xe], 8
shr eax, 0x10
or edx, eax
mov eax, ecx
and eax, 0xff00
shl ecx, 0x10
or eax, ecx
shr edx, 8
shl eax, 8
or edx, eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x14], edx
push dword [esi + 8]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
mov edi, eax
mov ebx, 0x10000000
or edi, ebx
jl 0x4bb19c
xor edi, edi
test edi, edi
js 0x4bb250
xor edi, edi
test edi, edi
js 0x4bb250
push edi
push dword [ebp + 8]
push dword [ebp - 0x20]
push dword [esi + 8]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
mov edi, eax
or edi, ebx
jl 0x4bb1c6
xor edi, edi
test edi, edi
js 0x4bb250
xor edi, edi
test edi, edi
js 0x4bb250
push edi
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [esi + 8]
call dword [sym.imp.bcrypt.dll_BCryptFinishHash]
mov edi, eax
or edi, ebx
jl 0x4bb1ec
xor edi, edi
test edi, edi
js 0x4bb250
xor edi, edi
test edi, edi
js 0x4bb250
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x18]
push 0x10
push eax
push 0x10
pop edx
mov ecx, ebx
call fcn.004baede
pop ecx
pop ecx
test eax, eax
je 0x4bb216
mov edi, 0x8000ffff
jmp 0x4bb250
mov eax, dword [ebx]
bswap eax
mov dword [ebx], eax
movzx eax, word [ebx + 4]
rol ax, 8
movzx eax, ax
mov word [ebx + 4], ax
movzx eax, word [ebx + 6]
rol ax, 8
movzx eax, ax
and eax, 0xfff
or eax, 0x5000
mov word [ebx + 6], ax
mov al, byte [ebx + 8]
and al, 0x3f
or al, 0x80
xor edi, edi
mov byte [ebx + 8], al
test esi, esi
je 0x4bb25c
push ecx
mov ecx, esi
call fcn.004bbe0a
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005261ea
leave
ret 8
Function at 0x4be12a
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x54c1e0]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov edi, dword [0x54d47c]
test edi, edi
je 0x4be20e
mov esi, dword [edi]
cmp esi, dword [edi + 4]
je 0x4be1fd
push 0x10
pop ebx
mov edx, esi
lea ecx, [esp + 0xc]
call fcn.004be0af
lea eax, [esp + 0xc]
cmp dword [esp + 0x20], ebx
jb 0x4be178
mov eax, dword [esp + 0xc]
mov ecx, esi
cmp dword [esi + 0x14], ebx
jb 0x4be181
mov ecx, dword [esi]
push eax
push ecx
call fcn.0050aa00
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4be1e0
call fcn.0050ac65
cmp dword [eax], 0x11
jne 0x4be1d1
lea eax, [esp + 0xc]
cmp dword [esp + 0x20], ebx
jb 0x4be1a8
mov eax, dword [esp + 0xc]
push eax
call fcn.0050a7d6
pop ecx
lea ecx, [esp + 0xc]
cmp dword [esp + 0x20], ebx
jb 0x4be1bd
mov ecx, dword [esp + 0xc]
mov eax, esi
cmp dword [esi + 0x14], ebx
jb 0x4be1c6
mov eax, dword [esi]
push ecx
push eax
call fcn.0050aa00
pop ecx
pop ecx
mov edi, eax
test edi, edi
je 0x4be1e0
push 0x43cb18
call fcn.0050928c
pop ecx
lea ecx, [esp + 0xc]
call fcn.0047c9d0
mov edi, dword [0x54d47c]
add esi, 0x18
mov eax, dword [edi + 4]
cmp esi, eax
jne 0x4be15f
mov ecx, edi
call fcn.004a08d8
push 0xc
push edi
call fcn.00526200
pop ecx
pop ecx
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005261ea
mov esp, ebp
pop ebp
ret
Function at 0x4c0000
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x54c1e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, ecx
cmp ebx, 0xffffffff
jne 0x4c0025
xor eax, eax
jmp 0x4c00f9
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x4c0051
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [esi + ecx]
cmp ecx, eax
jae 0x4c0051
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x4c00f1
cmp dword [edi + 0x4c], 0
je 0x4c00f5
mov ecx, edi
call fcn.004c023c
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x4c0071
movsx eax, bl
jmp 0x4c00b4
mov byte [ebp - 0x25], bl
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x5512ac]
mov ecx, dword [ebp - 0x2c]
call esi
test eax, eax
js 0x4c00f5
cmp eax, 1
jle 0x4c00c8
cmp eax, 3
jne 0x4c00f5
movsx eax, byte [ebp - 0x25]
push dword [edi + 0x4c]
push eax
call fcn.0050aad7
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x4c00f1
or ebx, eax
jmp 0x4c00f1
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x4c00e5
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.005136a1
add esp, 0x10
cmp esi, eax
jne 0x4c00f5
lea eax, [ebp - 0x25]
mov byte [edi + 0x3d], 1
cmp dword [ebp - 0x34], eax
je 0x4c00f5
mov eax, ebx
jmp 0x4c00f8
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.005261ea
leave
ret 4

Function at 0x4c0261
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x54c1e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
cmp dword [ebx + 0x38], 0
je 0x4c02c9
cmp byte [ebx + 0x3d], 0
je 0x4c02c9
push 0xffffffffffffffff
call fcn.004c0000
cmp eax, 0xffffffff
je 0x4c0302
push edi
mov edi, dword [ebx + 0x38]
mov eax, dword [edi]
mov esi, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebx + 0x40]
push eax
call dword [0x5512ac]
mov ecx, edi
call esi
xor ecx, ecx
pop edi
sub eax, ecx
je 0x4c02d9
sub eax, 1
je 0x4c02dc
dec eax
sub eax, 1
jne 0x4c0302
mov byte [ebx + 0x3d], cl
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005261ea
leave
ret
mov byte [ebx + 0x3d], cl
mov esi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x4c02f9
push dword [ebx + 0x4c]
push esi
push 1
push eax
call fcn.005136a1
add esp, 0x10
cmp esi, eax
jne 0x4c0302
cmp byte [ebx + 0x3d], 0
sete al
jmp 0x4c02cb
xor al, al
jmp 0x4c02cb
Function at 0x4c1127
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x54c1e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edx
mov esi, ecx
lea eax, [ebp - 0x70]
push esi
push 0x449540
push 0x64
push eax
call fcn.00462def
add esp, 0x14
test eax, eax
js 0x4c1158
lea esi, [ebp - 0x70]
push esi
mov esi, 0x7e2
xor edx, edx
push esi
xor ecx, ecx
call fcn.004c885f
push esi
call fcn.0051233a
int3

Function at 0x4c116f
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x54c1e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push ecx
push 0x44952c
lea eax, [ebp - 0x68]
push 0x64
push eax
call fcn.00462def
add esp, 0x10
test eax, eax
jns 0x4c119e
xor eax, eax
jmp 0x4c11a1
lea eax, [ebp - 0x68]
push eax
mov esi, 0x7e3
xor edx, edx
push esi
xor ecx, ecx
call fcn.004c885f
push esi
call fcn.0051233a
int3

Function at 0x4c4fbe
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, 0x2330
mov esi, edx
push ebx
push 0x43ca3c
push 2
mov edi, ecx
call fcn.00503fb8
pop ecx
push eax
call fcn.0047fdf1
add esp, 0xc
push 0x43ca70
push 2
call fcn.00503fb8
pop ecx
push eax
call fcn.0047fdf1
pop ecx
pop ecx
push esi
push edi
push dword [ebp + 8]
push 0x4497c8
push 2
call fcn.00503fb8
pop ecx
push eax
call fcn.0047fdf1
add esp, 0x14
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4c5021
int3
push ebx
call fcn.0051233a
int3
Function at 0x4c63f6
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x54c1e0]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
mov edx, ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], eax
lea esi, [esp + 0x18]
mov dword [eax], edi
mov dword [eax + 4], edi
mov ebx, 0x104
mov eax, esi
mov ecx, ebx
sub edx, eax
lea eax, [ecx + 0x7ffffefa]
test eax, eax
je 0x4c6452
movzx eax, word [edx + esi]
test ax, ax
je 0x4c6452
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x4c6434
test ecx, ecx
jne 0x4c6459
sub esi, 2
xor eax, eax
lea ecx, [esp + 0x18]
push 0x449964
mov edx, ebx
mov word [esi], ax
call fcn.004c1a01
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x4c64a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4c64dc
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.004c6110
mov edi, eax
jmp 0x4c64dc
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.004c62dd
mov ebx, eax
test ebx, ebx
jns 0x4c64ce
mov ecx, dword [ebp + 4]
mov edx, 0xcf
push ebx
push 0x449960
call fcn.004c60f3
mov edi, ebx
jmp 0x4c64dc
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
test esi, esi
je 0x4c64e6
push esi
call fcn.004c6168
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.005261ea
mov esp, ebp
pop ebp
ret 8
Function at 0x4c81f3
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
push edi
lea ecx, [esi + 0x10]
mov dword [ebp - 4], esi
mov dword [esi], 0x409c60
call fcn.0047cac3
xor ebx, ebx
mov word [esi + 8], bx
mov dword [esi + 0xc], ebx
mov byte [esi + 0xa], bl
test edi, edi
jne 0x4c822c
mov byte [esi + 4], 2
jmp 0x4c82c4
cmp byte [edi + 2], 0x2d
jne 0x4c8243
push 1
call fcn.00503fb8
pop ecx
mov dword [esi + 0x28], eax
mov byte [esi + 9], 1
jmp 0x4c82b4
mov eax, dword [0x54fca0]
cmp dword [eax + 0x68], ebx
jne 0x4c8252
cmp dword [eax + 0x74], ebx
je 0x4c8287
push 0x20
push 0x449a5c
push edi
call fcn.00510879
add esp, 0xc
mov dword [esi + 0x28], eax
test eax, eax
je 0x4c8287
push 2
push ebx
push eax
call fcn.0050ba8a
add esp, 0xc
test eax, eax
je 0x4c829a
push dword [esi + 0x28]
call fcn.00510912
pop ecx
mov dword [esi + 0x28], ebx
jmp 0x4c829a
push 0x20
push 0x449a58
push edi
call fcn.00510879
mov dword [esi + 0x28], eax
add esp, 0xc
mov eax, dword [esi + 0x28]
test eax, eax
je 0x4c82d1
push 0x8000
push ebx
push ebx
push eax
call fcn.00511ad7
mov eax, dword [esi + 0x28]
add esp, 0x10
test eax, eax
je 0x4c82d1
push ecx
mov ecx, esi
mov byte [esi + 4], 1
call fcn.004c8372
pop edi
mov word [esi + 6], bx
mov eax, esi
pop esi
pop ebx
leave
ret 8
push edi
mov esi, 0x8a4
xor edx, edx
push esi
xor ecx, ecx
call fcn.004c885f
push esi
call fcn.0051233a
int3

Function at 0x4c8395
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov dl, byte [esi + 4]
cmp dl, 2
je 0x4c83d8
cmp byte [esi + 7], 0
jne 0x4c83d8
cmp byte [esi + 8], 0
jne 0x4c83d8
cmp dl, 1
jne 0x4c83dd
push dword [esi + 0x28]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.005136a1
add esp, 0x10
cmp byte [esi + 9], 0
je 0x4c83d8
push dword [esi + 0x28]
call fcn.0050437d
pop ecx
pop esi
pop ebp
ret 8
call fcn.004c86c3
test eax, eax
je 0x4c842f
push edi
call fcn.004c86c3
mov edi, dword [ebp + 0xc]
add eax, edi
cmp eax, dword [esi + 0x38]
jb 0x4c8409
test dl, dl
jne 0x4c83ff
mov eax, dword [esi + 0x2c]
jmp 0x4c8401
xor eax, eax
add eax, edi
push eax
call fcn.004c8626
push edi
push dword [ebp + 8]
mov ecx, esi
call fcn.004c86c3
push eax
call fcn.005280d0
add esp, 0xc
mov ecx, esi
call fcn.004c86c3
add eax, edi
push eax
call fcn.004c86aa
pop edi
jmp 0x4c83d8
push 0x449a88
mov edx, 0xdd
mov ecx, 0x449a60
call fcn.004c4fbe
int3

Function at 0x4c93bb
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x5507f8]
mov edx, dword [0x5507f4]
sub eax, edx
push esi
mov esi, ecx
cmp eax, esi
jae 0x4c93ec
push 0x7fec
call fcn.00512ebc
mov edx, eax
pop ecx
test edx, edx
je 0x4c93fe
lea ecx, [edx + 0x7fec]
mov dword [0x5507f8], ecx
lea ecx, [esi + 3]
mov eax, edx
and ecx, 0xfffffffc
add ecx, edx
mov dword [0x5507f4], ecx
pop esi
ret
push 0
mov esi, 0x7d5
xor edx, edx
push esi
xor ecx, ecx
call fcn.004c885f
push esi
call fcn.0051233a
int3
Function at 0x4cb9ec
Capabilities:
Access peb ldr_data

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533445
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x54c1e0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [edi + 0x17c]
call fcn.0048ede1
lea esi, [edi + 0x174]
mov eax, dword [esi]
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.004cbc25
mov ecx, dword [esi]
push 0x1c
pop edx
call fcn.0047f6ae
lea esi, [edi + 0x168]
mov eax, dword [esi]
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.00492acf
mov ecx, dword [esi]
push 0x30
pop edx
call fcn.0047f6ae
lea esi, [edi + 0x160]
mov eax, dword [esi]
mov ecx, esi
push dword [eax + 4]
push esi
call fcn.004cbc25
mov ecx, dword [esi]
push 0x1c
pop edx
call fcn.0047f6ae
lea ecx, [edi + 0x158]
call fcn.00487f2b
lea ecx, [edi + 0x150]
call fcn.00487f2b
lea ecx, [edi + 0x34]
call fcn.0047f7e1
lea ecx, [edi + 0x30]
call fcn.0047f7e1
lea ecx, [edi + 0x2c]
call fcn.0047f7e1
lea ecx, [edi + 0x28]
call fcn.0047f7e1
lea ecx, [edi + 0xc]
call fcn.0047c9d0
lea ecx, [edi + 4]
call fcn.004ca02b
and dword [ebp - 4], 0
mov ecx, dword [edi]
test ecx, ecx
je 0x4cbad6
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x5512ac]
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret

Function at 0x4cbc6c
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x54c1e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
pop eax
call fcn.00526f30
mov eax, esp
lea ecx, [ebp - 0x28]
push 0x1c
push ecx
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4cbd23
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x48]
lea eax, [esi + 0x2000]
mov edi, ebx
neg edi
and edi, dword [ebp - 8]
sub edi, ebx
mov dword [ebp - 8], eax
cmp edi, eax
jb 0x4cbd23
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4cbd23
add esi, dword [ebp - 0x1c]
mov ecx, 0x1000
test dword [ebp - 0x18], ecx
je 0x4cbcc9
test dword [ebp - 0x14], 0x100
mov esi, dword [ebp - 0x28]
je 0x4cbcf8
xor eax, eax
inc eax
jmp 0x4cbd25
cmp edi, esi
jb 0x4cbd23
mov eax, dword [ebp - 8]
cmp esi, eax
jae 0x4cbd05
mov esi, eax
push 4
push ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea eax, [ebp - 0xc]
push eax
push 0x104
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x4cbd25
xor eax, eax
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005261ea
leave
ret