joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4babd7
Capabilities:
Authenticate hmac

Disassembly:
add byte [ecx + 0x45], cl
js 0x4bac3f
jo 0x4bac53
imul ebp, dword [edi + 0x6e], 0x646e6148
insb byte es:[edi], dx
jb 0x4bac1c
add byte [esi + 0x69], al
insb byte es:[edi], dx
inc esp
jae 0x4bac56
jb 0x4bac5e
jo 0x4bac6b
imul ebp, dword [edi + 0x6e], 0x49424d00
outsb dx, byte [esi]
inc edx
jns 0x4bac76
Function at 0x4bb2f2
Capabilities:
Authenticate hmac

Disassembly:
dec esp
popal
jne 0x4bb364
arpl word [eax], bp
je 0x4bb35c
jns 0x4bb3d1
je 0x4bb3c5
insd dword es:[edi], dx
Function at 0x40136d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x40b3a4], 0
push esi
jne 0x4013a4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40137e
mov dword [ecx*4 + 0x40b3a0], eax
inc ecx
cmp ecx, 0x100
jl 0x401379
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4013d5
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x40b3a0]
xor eax, esi
inc ecx
dec edx
jne 0x4013b7
pop edi
not eax
pop esi
ret 0xc
Function at 0x402bf0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x425fb0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402c84
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402c41
cmp dword [ebp + 0x10], ebx
jne 0x402c78
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402bf0
test eax, eax
jne 0x402c53
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402c28
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00407ddf
cmp eax, ebx
je 0x402c8b
push ebx
push dword [0x425fb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402c84
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x425fb0], ebx
jne 0x402c81
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402c81
jmp 0x402c84
Function at 0x4030d2
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x4030ff
mov ecx, dword [0x425f58]
push edi
add eax, ecx
push edi
push eax
mov dword [0x41947c], eax
push dword [0x40b018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.004031fd
cmp eax, edi
jl 0x4031f6
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x40b018]
call ebx
test eax, eax
je 0x4031f3
cmp dword [ebp - 4], esi
jne 0x4031f3
push dword [ebp + 8]
add dword [0x41947c], esi
call fcn.004031fd
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x4031f6
cmp dword [ebp + 0x10], edi
jne 0x4031c2
cmp dword [ebp + 8], edi
jle 0x4031ee
mov esi, 0x415478
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x403172
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x40b018]
call ebx
test eax, eax
je 0x4031f3
cmp edi, dword [ebp - 4]
jne 0x4031f3
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4031be
cmp dword [ebp + 0x14], edi
jne 0x4031be
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41947c], eax
cmp dword [ebp + 8], 0
jg 0x403165
jmp 0x4031ee
push 0xfffffffffffffffe
jmp 0x4031f5
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4031cd
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40b018]
call ebx
test eax, eax
je 0x4031f3
mov eax, dword [ebp - 4]
add dword [0x41947c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x4031f6
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4031fd
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x41947c]
sub esi, dword [0x40d3e8]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x425f0c], eax
jle 0x403367
push dword [0x42148c]
call fcn.004033ab
push ebx
push ebx
push dword [0x40d3e8]
push dword [0x40b018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x421488], esi
mov dword [0x419478], ebx
mov ebp, 0x40d478
mov eax, dword [0x419480]
mov edi, 0x4000
sub eax, dword [0x42148c]
cmp eax, edi
jg 0x403272
mov edi, eax
mov esi, 0x415478
push edi
push esi
call fcn.00403379
test eax, eax
je 0x403359
add dword [0x42148c], edi
mov dword [0x40d408], esi
mov dword [0x40d40c], edi
cmp dword [0x425f10], ebx
je 0x4032c9
cmp dword [0x425fa0], ebx
jne 0x4032c9
mov eax, dword [0x421488]
push ebx
sub eax, dword [0x41947c]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40d3e8]
mov dword [0x419478], eax
call fcn.00402d8d
pop ecx
mov ecx, 0x40d3f0
mov dword [0x40d410], ebp
mov dword [0x40d414], 0x8000
call fcn.004033e2
test eax, eax
jl 0x403362
mov esi, dword [0x40d410]
sub esi, ebp
je 0x403323
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40b018]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40335e
cmp esi, dword [esp + 0x10]
jne 0x40335e
add dword [0x40d3e8], esi
cmp dword [0x40d40c], ebx
jne 0x403298
jmp 0x40332f
cmp dword [0x40d40c], ebx
jne 0x403362
cmp edi, ebx
je 0x403362
mov eax, dword [0x41947c]
mov ecx, eax
sub ecx, dword [0x40d3e8]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x40325c
push ebx
push ebx
push eax
push dword [0x40b018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x403367
or eax, 0xffffffff
jmp 0x403371
push 0xfffffffffffffffe
jmp 0x403364
push 0xfffffffffffffffd
pop eax
jmp 0x403371
push 1
call fcn.00402d8d
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x404f40
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x214], 0
jne 0x404f96
inc dword [0x4256d4]
mov eax, dword [0x4256d4]
or dword [esi + 0x218], 2
push 0x40
push 0x1000
push 0xa
push 0
mov dword [esi + 0xea0], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x214], eax
mov byte [eax], 0xb8
inc eax
mov ecx, 0x408027
mov dword [eax], esi
add eax, 4
mov byte [eax], 0xe9
inc eax
sub ecx, eax
sub ecx, 4
mov dword [eax], ecx
mov eax, dword [esi + 0x214]
pop esi
ret

Function at 0x4052f8
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x4256d0
push 0x40
push 4
push 0x4256e0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
mov byte [0x4256e0], 0xc2
mov dword [0x4256d0], eax
mov dword [0x4256d8], eax
mov dword [0x4256e8], eax
mov dword [0x4256dc], eax
mov dword [0x4256d4], eax
mov byte [0x4256e2], al
ret
Function at 0x407159
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4248e8], 0x44
push eax
xor eax, eax
push 0x4248e8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x407194
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x40721e
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004074cd
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x407252
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x425f88], eax
jmp 0x4073e6
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x407270
test eax, eax
je 0x407391
test byte [ebp + 0xc], 2
je 0x407391
mov esi, 0x4238e8
push edi
push esi
call fcn.00407abd
test ebx, ebx
je 0x40728d
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x407293
push edi
call fcn.00407433
cmp byte [edi], 0
jne 0x4072a1
cmp byte [0x4238e8], 0x5c
jne 0x4072ac
push 0x40b010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x407387
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.00407417
cmp byte [eax], 0
je 0x4072f2
cmp byte [ebp - 0x18], 0
je 0x4072f2
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x407308
mov al, byte [esi + 1]
test al, al
je 0x407366
cmp al, 0x2e
jne 0x407308
cmp byte [esi + 2], 0
je 0x407366
push esi
push ebx
call fcn.00407abd
test byte [ebp - 0x148], 0x10
je 0x40732d
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x407366
push dword [ebp + 0xc]
push edi
call fcn.0040721e
jmp 0x407366
push edi
call fcn.004075b5
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40735e
test byte [ebp + 0xc], 4
je 0x407356
push edi
push 0xfffffffffffffff1
call fcn.00406c97
push 0
push edi
call fcn.0040764b
jmp 0x407366
inc dword [0x425f88]
jmp 0x407366
push edi
push 0xfffffffffffffff2
call fcn.00406c97
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4072d0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x407391
and byte [ebx - 1], 0
xor esi, esi
pop ebx
cmp dword [ebp - 4], esi
je 0x4073e6
cmp dword [ebp - 8], esi
jne 0x4073a6
inc dword [0x425f88]
jmp 0x4073e6
push edi
call fcn.00407db8
test eax, eax
je 0x4073e6
push edi
call fcn.004073ec
push edi
call fcn.004075b5
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4073de
test byte [ebp + 0xc], 4
je 0x40739e
push edi
push 0xfffffffffffffff1
call fcn.00406c97
push esi
push edi
call fcn.0040764b
jmp 0x4073e6
push edi
push 0xffffffffffffffe5
call fcn.00406c97
pop edi
pop esi
leave
ret 8
Function at 0x4074cd
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x423ce8
push esi
call fcn.00407abd
push esi
call fcn.00407480
mov edi, eax
test edi, edi
jne 0x4074ee
xor eax, eax
jmp 0x407540
push edi
call fcn.00407d1f
test byte [0x425f18], 0x80
je 0x407507
mov al, byte [edi]
test al, al
je 0x4074ea
cmp al, 0x5c
je 0x4074ea
sub edi, esi
jmp 0x40751f
call fcn.00407db8
test eax, eax
je 0x407519
test byte [eax], 0x10
je 0x4074ea
push esi
call fcn.00407433
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40750b
call fcn.004073ec
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4075b5
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4075d1
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4075d4
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x407603
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x407647
test edi, edi
jne 0x40760e
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x407641
Function at 0x40764b
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00407ddf
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40766f
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x4077a8
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x424a70], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x424a70
je 0x4076b3
push 1
push 0
push esi
call fcn.004075d4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4077ae
cmp eax, edi
jg 0x4077ae
mov esi, 0x4244e8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4077ae
cmp eax, edi
jg 0x4077ae
push esi
push ebp
push str._s_s_r_n
push 0x4240e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x425f10]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00407adf
push 4
push 0xc0000000
push esi
call fcn.004075d4
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x4077a8
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4077a1
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4077a1
cmp edi, dword [esp + 0x18]
jne 0x4077a1
push str._Rename__r_n
push esi
call fcn.00407545
test eax, eax
jne 0x4077b5
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00407abd
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x4240e8
push eax
call fcn.00407591
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x425f90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40b370
push eax
call fcn.00407545
test eax, eax
je 0x40776c
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x4077dc
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x4077d1
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40776e
Function at 0x4077e4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407855
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x407844
cmp dword [ebp + 0x14], 1
je 0x407846
cmp dword [ebp + 0x14], 2
je 0x407846
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x403300
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
test ebx, ebx
je 0x40338e
mov dword [esp + 4], 0x2f
mov dword [esp], ebx
call sub.cygwin1.dll_strrchr
test eax, eax
je 0x403374
lea edx, [eax + 1]
mov ecx, edx
sub ecx, ebx
cmp ecx, 6
mov dword [ebp - 0x1c], edx
jle 0x403374
lea esi, [eax - 6]
mov edi, str._.libs_
mov ecx, 7
repe cmpsb byte [esi], byte es:[edi]
jne 0x403374
mov esi, dword [ebp - 0x1c]
mov ecx, 3
mov edi, 0x405d70
mov ebx, dword [ebp - 0x1c]
repe cmpsb byte [esi], byte es:[edi]
seta cl
mov esi, ecx
setb cl
mov edx, esi
cmp dl, cl
jne 0x403374
lea ebx, [eax + 4]
mov eax, dword [sym.imp.cygwin1.dll_program_invocation_short_name]
mov dword [eax], ebx
mov eax, dword [sym.imp.cygwin1.dll_program_invocation_name]
mov dword [0x408078], ebx
mov dword [eax], ebx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp + 8], 0x37
mov dword [esp + 4], 1
mov dword [esp], str.A_NULL_argv_0__was_passed_through_an_exec_system_call._n
mov dword [esp + 0xc], eax
call sub.cygwin1.dll_fwrite
call sub.cygwin1.dll_abort
nop
nop
nop
nop
nop

Function at 0x403420
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 8], esi
mov esi, edx
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov ebx, eax
mov dword [ebp - 4], edi
mov edi, ecx
mov dword [ebp - 0x1c], edx
call sub.cygwin1.dll___getreent
mov edx, dword [ebp - 0x1c]
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_vfprintf
add dword [0x40818c], 1
test esi, esi
jne 0x4034a0
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp], 0xa
mov dword [esp + 4], eax
call sub.cygwin1.dll_putc_unlocked
call sub.cygwin1.dll___getreent
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call sub.cygwin1.dll_fflush
test ebx, ebx
jne 0x4034a9
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov eax, esi
call fcn.004033c0
jmp 0x403461
mov dword [esp], ebx
call sub.cygwin1.dll_exit
jmp fcn.004034c0
Function at 0x401220
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401237
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401268
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x401264
cmp esi, eax
jae 0x401268
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x401254
cmp esi, eax
jb 0x40126e
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x401790
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x4017a0
lea eax, [ebp + 0xd]
pop ebp
ret 0xc
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
push edi
xor edi, edi
mov esi, ebp
lea ecx, [ecx]
push esi
call ebx
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4017b0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4017e0
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x228
mov eax, dword [0x4541fc]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx]
push ebx
mov ebx, dword [ecx + 4]
push ebp
push esi
push edi
mov edi, dword [esp + 0x23c]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
xor ebp, ebp
or ebx, 0x2001f
push ebx
push ebp
push edi
push eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x34], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, dword [esp + 0x14]
mov esi, eax
cmp esi, ebp
jne 0x40185a
xor eax, eax
cmp ecx, ebp
je 0x401842
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x20]
and ebx, 0x300
mov esi, eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ebx
cmp eax, ebp
je 0x401868
cmp ecx, ebp
je 0x4018fb
push ecx
jmp 0x4018f5
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea edx, [esp + 0x28]
push edx
push ebp
push ebp
push ebp
lea eax, [esp + 0x2c]
push eax
lea edx, [esp + 0x44]
push edx
push ebp
push ecx
mov dword [esp + 0x3c], pe_nt_image_headers32
call esi
test eax, eax
jne 0x4018ca
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
call fcn.004017e0
mov ebx, eax
cmp ebx, ebp
jne 0x401918
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x18]
push ebp
push ebp
push ebp
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x44]
push eax
push ebp
push ecx
mov dword [esp + 0x3c], pe_nt_image_headers32
call esi
test eax, eax
je 0x401890
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4018dd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
call fcn.004016b0
mov esi, eax
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x4018fb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00418dd5
add esp, 0x228
ret 4
mov eax, dword [esp + 0x14]
cmp eax, ebp
je 0x401927
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x4018fd
Function at 0x401dd0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x408]
sub esp, 0x408
push 0xffffffffffffffff
push 0x43dcd0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4541fc]
xor eax, ebp
mov dword [ebp + 0x404], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x410]
mov esi, dword [ebp + 0x414]
xor ebx, ebx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], ebx
mov dword [ebp], ebx
push 2
push ebx
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x401e4f
call fcn.00401300
mov esi, eax
jmp 0x401f31
mov eax, dword [ebp - 0x14]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x401e6b
call fcn.00401300
jmp 0x401f28
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x401e84
call fcn.00401300
jmp 0x401f28
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [eax + 1]
mov dword [ebp - 0x14], eax
cmp ecx, eax
jae 0x401eb8
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x401ea6
lea eax, [ebp]
call fcn.0040abb0
lea esi, [ebp - 0x1c]
call fcn.00409e80
mov eax, 0x8007000e
jmp 0x401f43
mov eax, ecx
lea esi, [ebp]
mov byte [ebp - 4], 2
call fcn.00409fd0
mov dword [ebp - 4], 1
jmp 0x401ee1
mov ecx, dword [ebp]
cmp ecx, ebx
jne 0x401eef
mov esi, 0x8007000e
jmp 0x401f2a
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
push eax
push ecx
push eax
push edx
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x401f0d
call fcn.00401300
jmp 0x401f28
mov edx, dword [ebp]
xor ecx, ecx
mov word [edx + eax*2], cx
mov eax, dword [ebp + 0x418]
mov ecx, dword [ebp]
push eax
lea edx, [ebp - 0x28]
call fcn.00402c30
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp + 4]
cmp dword [ebp], ecx
je 0x401f41
lea eax, [ebp]
call fcn.0040abb0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x404]
xor ecx, ebp
call fcn.00418dd5
add ebp, 0x408
mov esp, ebp
pop ebp
ret 0xc