joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410800
Capabilities:
Delete registry value

Disassembly:
sub esp, 8
call fcn.0040ef80
test eax, eax
jne 0x410815
mov eax, 0x80004005
add esp, 8
ret
push ebp
lea eax, [esp + 8]
push eax
push 0x20006
xor ebp, ebp
push ebp
push str.AppID
push SysReAllocString
mov dword [esp + 0x1c], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebp
je 0x410849
push eax
call fcn.00408c40
add esp, 4
pop ebp
add esp, 8
ret
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
push 0x20006
push str.511B87BA_C0D8_476C_8BB6_6789930B4EDB
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebp
call fcn.00408cd0
cmp eax, ebp
je 0x410899
push eax
call fcn.00408c40
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
cmp eax, ebp
je 0x410888
push eax
call ebx
cmp edi, ebp
je 0x41088f
push edi
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
add esp, 8
ret
mov esi, dword [esp + 0x10]
push str.LocalService
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push ebp
call fcn.00410650
test esi, esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebp, eax
je 0x4108be
push esi
call ebx
test edi, edi
je 0x4108c5
push edi
call ebx
pop edi
pop esi
pop ebx
mov eax, ebp
pop ebp
add esp, 8
ret

Function at 0x410c10
Capabilities:
Accept command line arguments

Disassembly:
push ecx
push esi
push 0
mov esi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 4
push 0
push 3
push 2
push 0
push 0
push 0xffffffffffffffff
push 0x417194
call dword [sym.imp.ole32.dll_CoInitializeSecurity]
mov al, byte [0x41720c]
test al, al
je 0x410c4e
call dword [sym.imp.ole32.dll_CoUninitialize]
or eax, 0xffffffff
pop esi
pop ecx
ret 4
mov dword [esp + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [esp + 4]
push ecx
push eax
mov ecx, esi
call fcn.00410b50
cmp al, 1
jne 0x410c88
mov edx, dword [esp + 0xc]
push edx
mov ecx, esi
call fcn.004108d0
mov esi, eax
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
pop ecx
ret 4
mov esi, dword [esp + 4]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
pop ecx
ret 4

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4079c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7dc
mov eax, dword [0x485098]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x7dc], eax
test ebx, ebx
je 0x407bce
test eax, eax
je 0x407bce
push esi
push edi
push 0x7d0
lea eax, [ebp - 0x7d4]
push 0
push eax
call fcn.004423c0
add esp, 0xc
mov esi, ebx
nop word [eax + eax]
mov al, byte [ebx]
inc ebx
test al, al
jne 0x407a10
lea edi, [ebp - 0x7d4]
sub ebx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407a20
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x7d4]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x407a40
mov ax, word [0x4693d4]
mov edx, dword [ebp - 0x7dc]
mov esi, edx
mov word [edi], ax
nop dword [eax + eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x407a60
lea edi, [ebp - 0x7d4]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407a70
mov ecx, edx
lea eax, [ebp - 0x7d4]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push 0x4693d0
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.004490d0
mov esi, eax
add esp, 8
test esi, esi
je 0x407ba8
push 0
push 4
push 0
push esi
call fcn.00449fed
push 2
push 0
push esi
call fcn.004493b4
push esi
call fcn.00449a50
push 0
push 0
push esi
mov edi, eax
call fcn.004493b4
add esp, 0x2c
test edi, edi
je 0x407b9f
push 0
push 0
push esi
mov byte [ebp - 0x7d5], 0
call fcn.004493b4
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x407b13
push esi
push 1
lea eax, [ebp - 0x7d5]
push 1
push eax
call fcn.00449c74
add esp, 0x10
cmp eax, 1
jne 0x407b9f
inc ebx
cmp ebx, edi
jb 0x407af1
push esi
call fcn.00448f0a
push 0
push 0
push esi
mov byte [ebp - 0x7d6], 0xff
call fcn.004493b4
add esp, 0x10
xor ebx, ebx
test edi, edi
je 0x407b51
push esi
push 1
lea eax, [ebp - 0x7d6]
push 1
push eax
call fcn.00449c74
add esp, 0x10
cmp eax, 1
jne 0x407b9f
inc ebx
cmp ebx, edi
jb 0x407b33
push esi
call fcn.00448f0a
push 0
push 0
push esi
call fcn.004493b4
add esp, 0x10
xor ebx, ebx
test edi, edi
je 0x407b8e
nop word [eax + eax]
push esi
push 1
lea eax, [ebp - 0x7d5]
push 1
push eax
call fcn.00449c74
add esp, 0x10
cmp eax, 1
jne 0x407b9f
inc ebx
cmp ebx, edi
jb 0x407b70
push esi
call fcn.00448f0a
push esi
call fcn.00448bb9
add esp, 8
jmp 0x407ba8
push esi
call fcn.00448bb9
add esp, 4
lea eax, [ebp - 0x7d4]
push eax
call fcn.00449e63
add esp, 4
pop edi
pop esi
test eax, eax
jne 0x407bce
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042aa99
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop ebx
call fcn.0042aa99
mov esp, ebp
pop ebp
ret
Function at 0x408350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
mov dword [ebp - 4], eax
test esi, esi
je 0x408438
call fcn.00408450
push 0x4697b0
push esi
call fcn.004490d0
mov esi, eax
add esp, 8
test esi, esi
je 0x408438
push ebx
push edi
push 2
push 0
push esi
call fcn.004493b4
add esp, 0xc
test eax, eax
jne 0x408424
push esi
call fcn.00449a50
push 0
push 0
push esi
mov ebx, eax
call fcn.004493b4
add esp, 0x10
test eax, eax
jne 0x408424
lea eax, [ebx + 1]
push eax
call fcn.0044578a
mov edi, eax
add esp, 4
test edi, edi
je 0x408424
lea eax, [ebx + 1]
push eax
push 0
push edi
call fcn.004423c0
push esi
push ebx
push 1
push edi
call fcn.0044b46f
add esp, 0x1c
cmp eax, ebx
je 0x4083fb
push edi
call fcn.0044576d
push esi
call fcn.00448bb9
add esp, 8
xor al, al
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.00448bb9
mov ecx, dword [ebp - 4]
add esp, 4
push ebx
push edi
call fcn.00408080
push edi
mov bl, al
call fcn.0044576d
add esp, 4
mov al, bl
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.00448bb9
add esp, 4
xor al, al
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4084d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov dword [ebp - 4], edi
test esi, esi
je 0x4086a8
call fcn.004086c0
push 0x4697b0
push esi
call fcn.004490d0
mov esi, eax
add esp, 8
test esi, esi
je 0x4086a8
push ebx
push 2
push 0
push esi
call fcn.004493b4
add esp, 0xc
test eax, eax
jne 0x408694
push esi
call fcn.00449a50
push 0
mov ebx, eax
push 0
push esi
mov dword [ebp - 8], ebx
call fcn.004493b4
add esp, 0x10
test eax, eax
jne 0x408694
lea eax, [ebx + 1]
push eax
call fcn.0044578a
add esp, 4
mov dword [ebp + 8], eax
test eax, eax
je 0x408694
lea ecx, [ebx + 1]
push ecx
push 0
push eax
call fcn.004423c0
push esi
push ebx
push 1
push dword [ebp + 8]
call fcn.0044b46f
add esp, 0x1c
cmp eax, ebx
je 0x40858d
push dword [ebp + 8]
call fcn.0044576d
push esi
call fcn.00448bb9
add esp, 8
xor al, al
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push esi
call fcn.00448bb9
add esp, 4
cmp ebx, 1
jb 0x408690
mov ecx, edi
call fcn.004086c0
xor edx, edx
mov dword [ebp - 0xc], edx
test ebx, ebx
je 0x408667
mov ecx, edi
mov eax, dword [ebp + 8]
xor esi, esi
nop word [eax + eax]
mov edi, ebx
sub edi, esi
cmp edi, 2
jb 0x40868b
lea ebx, [edx + eax]
cmp byte [ebx + esi], 0xd
jne 0x4085dd
cmp byte [ebx + esi + 1], 0xa
je 0x4085e3
mov ebx, dword [ebp - 8]
inc esi
jmp 0x4085c0
lea eax, [esi + 1]
push eax
call fcn.0044578a
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x408688
lea ecx, [esi + 1]
push ecx
push 0
push eax
call fcn.004423c0
add esp, 0xc
test esi, esi
je 0x40861d
push esi
push ebx
mov ebx, dword [ebp - 8]
push ebx
call fcn.004418c0
add esp, 0xc
jmp 0x408620
mov ebx, dword [ebp - 8]
push 8
call fcn.0044578a
add esp, 4
test eax, eax
je 0x40867f
mov ecx, dword [ebp - 4]
mov dword [eax + 4], 0
mov dword [eax], ebx
mov edx, dword [ecx + 4]
test edx, edx
je 0x408646
mov dword [edx + 4], eax
jmp 0x408648
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
lea ebx, [edi - 2]
add edx, 2
mov dword [ecx + 4], eax
inc dword [ecx + 8]
add edx, esi
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ebx
test ebx, ebx
jne 0x4085b5
mov bl, 1
push dword [ebp + 8]
call fcn.0044576d
add esp, 4
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
call fcn.0044576d
add esp, 4
mov ecx, dword [ebp - 4]
call fcn.004086c0
xor bl, bl
jmp 0x408669
push esi
call fcn.00448bb9
add esp, 4
xor al, al
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40cd20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7d8
mov eax, dword [0x485098]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x7d0
lea eax, [ebp - 0x7d4]
mov dword [ebp - 0x7d8], ecx
push 0
push eax
call fcn.004423c0
mov edx, dword [section..data]
add esp, 0xc
mov esi, edx
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x40cd60
lea edi, [ebp - 0x7d4]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40cd70
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x7d4]
dec edi
nop dword [eax]
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x40cd90
mov ax, word [0x4693d4]
lea ecx, [ebp - 0x7d4]
mov word [edi], ax
dec ecx
nop word [eax + eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x40cdb0
mov eax, dword [str.pendencias.dat]
mov dword [ecx], eax
mov eax, dword [0x46a754]
mov dword [ecx + 4], eax
mov eax, dword [0x46a758]
mov dword [ecx + 8], eax
mov ax, word [0x46a75c]
mov word [ecx + 0xc], ax
mov al, byte [0x46a75e]
mov byte [ecx + 0xe], al
lea eax, [ebp - 0x7d4]
push 0x4697b0
push eax
call fcn.004490d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ce0f
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042aa99
mov esp, ebp
pop ebp
ret
push ebx
push 2
push 0
push esi
call fcn.004493b4
add esp, 0xc
test eax, eax
jne 0x40cec7
push esi
call fcn.00449a50
push 0
push 0
push esi
mov ebx, eax
call fcn.004493b4
add esp, 0x10
test eax, eax
jne 0x40cec7
lea eax, [ebx + 1]
push eax
call fcn.0044578a
mov edi, eax
add esp, 4
test edi, edi
je 0x40cec7
lea eax, [ebx + 1]
push eax
push 0
push edi
call fcn.004423c0
push esi
push ebx
push 1
push edi
call fcn.0044b46f
add esp, 0x1c
cmp eax, ebx
je 0x40ce93
push edi
call fcn.0044576d
push esi
call fcn.00448bb9
add esp, 8
xor al, al
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042aa99
mov esp, ebp
pop ebp
ret
push esi
call fcn.00448bb9
mov ecx, dword [ebp - 0x7d8]
add esp, 4
push ebx
push edi
call fcn.0040c900
push edi
mov bl, al
call fcn.0044576d
add esp, 4
mov al, bl
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042aa99
mov esp, ebp
pop ebp
ret
push esi
call fcn.00448bb9
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor al, al
pop ebx
pop edi
pop esi
call fcn.0042aa99
mov esp, ebp
pop ebp
ret
Function at 0x40cfa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7d8
mov eax, dword [0x485098]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x7d0
lea eax, [ebp - 0x7d4]
mov ebx, ecx
push 0
push eax
call fcn.004423c0
mov edx, dword [section..data]
add esp, 0xc
mov esi, edx
mov al, byte [edx]
inc edx
test al, al
jne 0x40cfd6
lea edi, [ebp - 0x7d4]
sub edx, esi
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x40cfe6
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x7d4]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x40d003
mov ax, word [0x4693d4]
lea ecx, [ebp - 0x7d4]
mov word [edi], ax
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x40d020
mov eax, dword [str.pendencias.dat]
mov dword [ecx], eax
mov eax, dword [0x46a754]
mov dword [ecx + 4], eax
mov eax, dword [0x46a758]
mov dword [ecx + 8], eax
mov ax, word [0x46a75c]
mov word [ecx + 0xc], ax
mov al, byte [0x46a75e]
mov byte [ecx + 0xe], al
lea eax, [ebp - 0x7d8]
push eax
push 0
mov ecx, ebx
mov dword [ebp - 0x7d8], 0
call fcn.0040d110
test al, al
je 0x40d0f7
push dword [ebp - 0x7d8]
call fcn.0044578a
mov edi, eax
add esp, 4
test edi, edi
je 0x40d0f7
lea eax, [ebp - 0x7d8]
mov ecx, ebx
push eax
push edi
call fcn.0040d110
test al, al
je 0x40d0ee
lea eax, [ebp - 0x7d4]
push 0x46a76c
push eax
call fcn.004490d0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40d0ee
push ebx
push 1
push dword [ebp - 0x7d8]
push edi
call fcn.00449c74
push ebx
mov esi, eax
call fcn.00448bb9
push edi
call fcn.0044576d
add esp, 0x18
cmp esi, 1
jne 0x40d0f7
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042aa99
mov esp, ebp
pop ebp
ret
push edi
call fcn.0044576d
add esp, 4
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042aa99
mov esp, ebp
pop ebp
ret
Function at 0x4143f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x485098]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, 0x9c4
xorps xmm0, xmm0
mov word [esi], ax
lea eax, [ebp - 0x194]
mov byte [esi + 0x12], 1
mov dword [esi + 0x14], 0
mov byte [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
movups xmmword [esi + 2], xmm0
push eax
movq xmm0, qword [str.127.0.0.1]
movq qword [esi + 2], xmm0
mov cl, byte [0x46b158]
push 2
mov byte [esi + 0xa], cl
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042aa99
mov esp, ebp
pop ebp
ret
Function at 0x41ba30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x485098]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x41bad1
cmp byte [esi + 0x3d], 0
je 0x41bad1
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x41ba87
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x41ba99
sub eax, 1
je 0x41ba9d
sub eax, 2
je 0x41bad1
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042aa99
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x41baba
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00449c74
add esp, 0x10
cmp edi, eax
jne 0x41ba87
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042aa99
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0042aa99
mov esp, ebp
pop ebp
ret
Function at 0x41c9d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x485098]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x41ca00
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042aa99
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x41ca3c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x41ca3c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042aa99
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x41cb21
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x41ca64
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41ca97
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0044c2cd
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042aa99
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x41cb21
cmp eax, 1
jle 0x41caf4
cmp eax, 3
jne 0x41cb21
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.00419f30
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042aa99
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x41cb11
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00449c74
add esp, 0x10
cmp edi, eax
jne 0x41cb21
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x41ca27
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042aa99
mov esp, ebp
pop ebp
ret 4
Function at 0x41d380
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x41d3a4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041d470
pop edi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x1c]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov eax, dword [eax]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
test eax, eax
je 0x41d3c5
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x41d3c7
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test ebx, ebx
jl 0x41d44f
jg 0x41d3da
test esi, esi
je 0x41d44f
test ecx, ecx
jl 0x41d41c
jg 0x41d3e4
test eax, eax
je 0x41d41c
cmp ebx, ecx
jg 0x41d3f6
jl 0x41d3ee
cmp esi, eax
jae 0x41d3f6
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.004418c0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov eax, dword [edi + 0x2c]
add dword [ebp + 8], ecx
sub esi, ecx
sbb ebx, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x41d422
mov eax, dword [ebp + 8]
mov dword [ebp + 8], eax
test ebx, ebx
jl 0x41d44f
jg 0x41d42c
test esi, esi
je 0x41d44f
cmp dword [edi + 0x4c], 0
je 0x41d44f
mov ecx, edi
call fcn.0041c020
push dword [edi + 0x4c]
push esi
push 1
push dword [ebp + 8]
call fcn.0044b46f
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
pop esi
sbb edx, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41d540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x41d564
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041d620
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov eax, dword [eax]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], eax
test eax, eax
je 0x41d585
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x41d587
xor eax, eax
cdq
mov dword [ebp + 0x10], eax
mov ecx, edx
mov dword [ebp - 4], ecx
test edi, edi
jl 0x41d604
jg 0x41d59a
test esi, esi
je 0x41d604
test ecx, ecx
jl 0x41d5de
jg 0x41d5a4
test eax, eax
je 0x41d5de
cmp edi, ecx
jg 0x41d5b6
jl 0x41d5ae
cmp esi, eax
jae 0x41d5b6
mov eax, esi
mov dword [ebp + 0x10], esi
mov dword [ebp - 4], edi
push eax
push dword [ebp + 8]
push dword [ebp - 8]
call fcn.004418c0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [ebp - 4]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x41d5e1
mov edx, dword [ebp + 8]
test edi, edi
jl 0x41d604
jg 0x41d5eb
test esi, esi
je 0x41d604
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x41d604
push eax
push esi
push 1
push edx
call fcn.00449c74
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4265f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x485098]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [ebp + 8]
push ebx
push edi
mov edi, ecx
mov byte [ebp + 8], 0
push 0x124
lea eax, [ebp - 0x128]
push 0
movups xmmword [edi], xmm0
push eax
movq xmm0, qword [ebp + 0x18]
movq qword [edi + 0x10], xmm0
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0xf
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
call fcn.004423c0
add esp, 0xc
mov dword [ebp - 0x12c], 0x128
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
lea eax, [ebp - 0x12c]
push eax
push ebx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x42673c
push esi
nop dword [eax]
lea ecx, [ebp - 0x108]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x426690
sub ecx, edx
mov eax, edi
cmp dword [edi + 0x14], 0x10
jb 0x4266a3
mov eax, dword [edi]
mov edx, dword [edi + 0x10]
cmp edx, ecx
jne 0x426705
lea esi, [ebp - 0x108]
sub edx, 4
jb 0x4266c6
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x4266cb
add eax, 4
add esi, 4
sub edx, 4
jae 0x4266b5
cmp edx, 0xfffffffc
je 0x4266ff
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x4266f8
cmp edx, 0xfffffffd
je 0x4266ff
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x4266f8
cmp edx, 0xfffffffe
je 0x4266ff
mov cl, byte [eax + 2]
cmp cl, byte [esi + 2]
jne 0x4266f8
cmp edx, 0xffffffff
je 0x4266ff
mov al, byte [eax + 3]
cmp al, byte [esi + 3]
je 0x4266ff
sbb eax, eax
or eax, 1
jmp 0x426701
xor eax, eax
test eax, eax
je 0x42671c
lea eax, [ebp - 0x12c]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x426680
jmp 0x42673b
push dword [ebp - 0x124]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x124]
mov dword [edi + 0x1c], eax
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x1c]
cmp edx, 0x10
jb 0x426773
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x426769
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x426787
push edx
push ecx
call fcn.0042a7f1
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop ebx
call fcn.0042aa99
mov esp, ebp
pop ebp
ret 0x18
call fcn.0044571c
int3

Function at 0x4275e0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x4275ee
mov eax, dword [eax]
push esi
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
cmove esi, ecx
mov eax, esi
pop esi
pop ebp
ret