joyce8/EMBER2024-capa huggingface dataset:
Function at 0x440b27
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x46a068]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x440b6d
cmp word [ebx], dx
jne 0x440b6d
or byte [eax + edi + 0x28], 4
jmp 0x440b72
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x440cd5
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x440cb5
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x440bb3
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x440be9
cmp eax, edx
jae 0x440bf7
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x440b8e
jmp 0x440cd5
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x440cb0
cmp dword [ebp - 0x18], 0
je 0x440cb0
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x46a068]
test byte [eax + edi + 0x28], 0x48
je 0x440c86
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x440c4a
mov word [esi], cx
jmp 0x440c81
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x46a068]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x46a068]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x46a068]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x440cd5
pop eax
cmp word [ebp - 4], ax
jne 0x440c96
cmp esi, ebx
jne 0x440c96
mov word [esi], ax
jmp 0x440cd2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00440353
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x440cd5
push 0xd
pop eax
jmp 0x440c91
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x46a068]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x440ccf
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x440cd5
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x441b6b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x45389c
push 0x453894
push str.FlsAlloc
push 0x1f
call fcn.00441aa6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x441b9f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4511dc]
call esi
jmp 0x441ba5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x441be9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4538ac
push 0x4538a4
push str.FlsGetValue
push 0x21
call fcn.00441aa6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x441c20
push dword [ebp + 8]
mov ecx, esi
call dword [0x4511dc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x441c28
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4538b4
push 0x4538ac
push str.FlsSetValue
push 0x22
call fcn.00441aa6
mov esi, eax
add esp, 0x10
test esi, esi
je 0x441c62
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4511dc]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x444eed
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x46900c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x444f38
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00445088
test al, al
jne 0x444f32
sub edx, 2
cmp edx, edi
jne 0x444f18
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x444f5a
lea eax, [edi + 2]
cmp edx, eax
je 0x444f5a
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00444e39
add esp, 0x10
jmp 0x445054
push esi
lea ecx, [ebp - 0x255]
call fcn.00445088
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x444f9d
push dword [ebp - 0x25c]
jmp 0x444f4a
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x444fda
cmp word [ebp - 0x226], 0
je 0x444ffb
cmp word [ebp - 0x226], ax
jne 0x444fda
cmp word [ebp - 0x224], 0
je 0x444ffb
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00444e39
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x445047
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x444fb4
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x44502f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x445054
push 0x444c69
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00436a80
add esp, 0x10
jmp 0x445024
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00432429
leave
ret
Function at 0x44a4e5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0044a461
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x44a654
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x44a654
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x44a609
jg 0x44a541
test eax, eax
je 0x44a5ff
push 1
push 0x1000
call fcn.00441910
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x44a564
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x44a5f6
push 0x8000
push ebx
call fcn.0043fb0f
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x44a58d
jg 0x44a588
cmp ecx, 0x1000
jb 0x44a58d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00442921
add esp, 0x10
cmp eax, 0xffffffff
je 0x44a5d2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x44a588
jl 0x44a5b9
test ecx, ecx
jne 0x44a57a
push dword [ebp - 0xc]
push ebx
call fcn.0043fb0f
push esi
call fcn.0044196d
add esp, 0xc
xor ebx, ebx
jmp 0x44a662
cmp byte [edi + 0x24], 0
je 0x44a5e9
cmp dword [edi + 0x20], 5
jne 0x44a5e9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x44a5f4
mov ebx, dword [edi + 0x18]
jmp 0x44a5f6
xor ebx, ebx
push esi
call fcn.0044196d
pop ecx
jmp 0x44a662
test ecx, ecx
jg 0x44a5cb
jl 0x44a609
test eax, eax
jae 0x44a5cb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00440353
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x44a629
cmp byte [edi + 0x1c], 0
je 0x44a5cb
jmp 0x44a65a
push ebx
call fcn.004464a7
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x44a5cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x44a662
cmp byte [edi + 0x1c], 0
je 0x44a65f
mov ebx, dword [edi + 0x18]
jmp 0x44a662
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00440353
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401407
Capabilities:
Terminate process

Disassembly:
push ebx
mov eax, 0x1f3f0
mov ebx, 0x12345678
mov ecx, 0x12345678
mov edx, 0x12345678
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [section..data], eax
jmp loc.0047b432
Function at 0x4abdb8
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, dword [ebp + 0xc]
mov eax, ebx
xor ecx, ecx
mov edx, 0x160
call fcn.00402d54
mov eax, dword [ebp + 8]
push eax
push 0x160
push ebx
push edi
mov eax, esi
call fcn.004045fc
push eax
call sub.shell32.dll_SHGetFileInfoA
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4063b0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
invalid

Function at 0x4063cc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x785], 0x3c
mov byte [ebp - 0x784], 0x30
mov byte [ebp - 0x783], 0x3a
mov byte [ebp - 0x782], 0x2d
mov byte [ebp - 0x781], 0x71
mov byte [ebp - 0x780], 0x3b
mov byte [ebp - 0x77f], 0x33
mov byte [ebp - 0x77e], 0x33
mov byte [ebp - 0x77d], 0x5f
push 0xc
lea eax, [ebp - 0x78c]
push eax
call fcn.00404823
pop ecx
push eax
mov eax, dword [ebp - 0x28]
lea eax, [ebp + eax - 0x12c]
push eax
call fcn.00404784
add esp, 0xc
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x3a0], eax
jmp 0x40678b
mov eax, dword [ebp - 0x6fc]
inc eax
mov dword [ebp - 0x6fc], eax
and dword [ebp - 0x37c], 0
call fcn.00404813
xchg ecx, eax
outsd dx, dword [esi]
mov ecx, 0x60b5ff4c
cld
invalid
Function at 0x403d80
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x403f38
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403de1
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
push 0x403f54
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403e4e
xor eax, eax
push ebp
push 0x403e47
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x403e30
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x403f74
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403e4e
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x403f2f
cmp byte [ebp - 0xd], 0
jne 0x403e90
cmp byte [ebp - 0x12], 0
je 0x403f2f
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x403ea9
dec ebx
cmp byte [ebx], 0x2e
je 0x403eb8
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x403ea8
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x403f2f
inc ebx
cmp byte [ebp - 0x12], 0
je 0x403ee5
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403f2f
cmp byte [ebp - 0xd], 0
je 0x403f2f
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403f2f
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405ebc
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x110], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x405fc6
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x405f0f
push 0x105
lea eax, [ebp - 0x109]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_2
mov ecx, eax
lea edx, [ebp - 0x109]
mov eax, dword [ebp - 4]
call fcn.004030d8
jmp 0x405fad
call sub.kernel32.dll_GetCommandLineA_1
mov ebx, eax
mov eax, ebx
call fcn.00405e70
mov ebx, eax
mov edi, ebx
mov eax, ebx
call fcn.00405e90
mov ebx, eax
test esi, esi
je 0x405f37
dec esi
test esi, esi
jl 0x405f37
cmp edi, ebx
jne 0x405f16
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x110]
mov edx, edi
call fcn.00403118
mov eax, dword [ebp - 0x110]
mov ecx, ebx
sub ecx, edi
mov edx, 1
call fcn.00403364
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403160
cmp eax, 2
jl 0x405fad
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp byte [eax], 0x22
jne 0x405fad
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403160
mov edx, dword [ebp - 4]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x22
jne 0x405fad
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.00403160
mov ecx, eax
sub ecx, 2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 2
call fcn.00403364
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405fcd
lea eax, [ebp - 0x110]
call fcn.00402ff4
ret

Function at 0x406024
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4060bc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebx + 0x18], 0
jne 0x406071
mov eax, dword [ebx + 0x19]
call fcn.00403324
push eax
push esi
mov eax, edi
call fcn.00403324
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403324
push eax
call sub.kernel32.dll_GetPrivateProfileIntA
mov dword [ebp - 4], eax
jmp 0x4060a6
mov dword [ebp - 4], esi
mov eax, dword [ebx + 0x19]
call fcn.00403324
push eax
lea edx, [ebp - 8]
mov eax, esi
call fcn.00405ce0
mov eax, dword [ebp - 8]
call fcn.00403324
push eax
mov eax, edi
call fcn.00403324
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403324
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4060c3
lea eax, [ebp - 8]
call fcn.00402ff4
ret
Function at 0x40ba64
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
mov eax, esi
mov edx, 0x200
call fcn.00403434
push 0x200
mov eax, esi
call fcn.00403330
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.user32.dll_GetWindowTextA
mov edx, eax
mov eax, esi
call fcn.00403434
lea eax, [ebx + 4]
mov edx, 0x200
call fcn.00403434
push 0x200
lea eax, [ebx + 4]
call fcn.00403330
push eax
mov eax, dword [ebx + 0xc]
push eax
call sub.user32.dll_GetClassNameA
mov edx, eax
lea eax, [ebx + 4]
call fcn.00403434
pop esi
pop ebx
ret

Function at 0x40c648
Capabilities:
Terminate process

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 4], 0
je 0x40c6ad
mov byte [ebx + 0x28], 0
push 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0x14]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0x18]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0x1c]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0x10]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebx + 0x24]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebx + 4], eax
pop ebx
ret
Function at 0x402a7c
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 [0x423f30]
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 0x402af7
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402afe
cmp dword [ebp + 0x10], ebx
jne 0x402aeb
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a7c
test eax, eax
jne 0x402afe
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402abe
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405f8e
cmp eax, ebx
je 0x402b23
push ebx
push dword [0x423f30]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402af7
cmp dword [0x423f30], ebx
jne 0x402af4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402af4
jmp 0x402af7

Function at 0x402f6a
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 0x402f97
mov ecx, dword [0x423ed8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x41703c], eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403095
cmp eax, edi
jl 0x40308e
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 [0x409018]
call ebx
test eax, eax
je 0x40308b
cmp dword [ebp - 4], esi
jne 0x40308b
push dword [ebp + 8]
add dword [0x41703c], esi
call fcn.00403095
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40308e
cmp dword [ebp + 0x10], edi
jne 0x40305a
cmp dword [ebp + 8], edi
jle 0x403086
mov esi, 0x413038
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x40300a
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409018]
call ebx
test eax, eax
je 0x40308b
cmp edi, dword [ebp - 4]
jne 0x40308b
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 0x403056
cmp dword [ebp + 0x14], edi
jne 0x403056
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x41703c], eax
cmp dword [ebp + 8], 0
jg 0x402ffd
jmp 0x403086
push 0xfffffffffffffffe
jmp 0x40308d
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403065
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409018]
call ebx
test eax, eax
je 0x40308b
mov eax, dword [ebp - 4]
add dword [0x41703c], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40308e
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x405b28
Capabilities:
Encode data using xor

Disassembly:
adc dword [eax - 0x2cc3feaa], ebx
pushal
mov ah, 0x72
push edi
pop es
invalid
pop es
call 0x1ded47ae
fcmovu st(0), st(2)
sbb eax, 0xa33a6331
clc
fxam
clc
xor dword [ebx + 0x3a], esp
mov dword [0xf8e5d9f8], eax
xchg edi, eax
pop ebx
leave
dec edi
and esi, dword [edx + ebx - 0x37]
jno 0x405b31
aam 0x85
fmul qword [edi + 0x781c6316]
xor dword [ebx + edx*2], ebx
jp 0x405af2
mov ebx, 0xe6134676
ljmp 0x842
Function at 0x402b78
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004047f0
test esi, esi
jne 0x402bae
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004048e0
jmp 0x402bcc
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402a2c
mov edi, eax
test esi, esi
je 0x402bcc
cmp dword [ebx], 0
je 0x402bcc
dec esi
jmp 0x402bb5
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403870
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x58800c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403908
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4038e8
xor eax, eax
push ebp
push 0x4038e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403924
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4038e8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x58800c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x58800c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4045f0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x58d04c], 0
je 0x404651
cmp word [0x58d220], 0xd7b2
jne 0x404619
cmp dword [0x58d228], 0
jbe 0x404619
mov eax, 0x58d21c
call dword [0x58d238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x588054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404678
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x58801c], 0
jne 0x40466d
push 0
push 0x588074
push 0x588054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4047a4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.004027f0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x58d04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40476c
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc