joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e0ad
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 + 0x48b330]
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 0x46e0f3
cmp word [ebx], dx
jne 0x46e0f3
or byte [eax + edi + 0x28], 4
jmp 0x46e0f8
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 0x46e25b
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 0x46e23b
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x46e139
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46e16f
cmp eax, edx
jae 0x46e17d
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 0x46e114
jmp 0x46e25b
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 0x46e236
cmp dword [ebp - 0x18], 0
je 0x46e236
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x48b330]
test byte [eax + edi + 0x28], 0x48
je 0x46e20c
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 0x46e1d0
mov word [esi], cx
jmp 0x46e207
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x48b330]
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 + 0x48b330]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x48b330]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x46e25b
pop eax
cmp word [ebp - 4], ax
jne 0x46e21c
cmp esi, ebx
jne 0x46e21c
mov word [esi], ax
jmp 0x46e258
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004015ff
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x46e25b
push 0xd
pop eax
jmp 0x46e217
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x48b330]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x46e255
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x46e25b
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 0x4a36f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x511070]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x5153d0], 0
jne 0x4a376f
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.004a83c0
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x4fca34
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ecx, ecx
mov dword [0x5153d0], eax
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.004a578d
mov esp, ebp
pop ebp
ret

Function at 0x4c333e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c31bd

Function at 0x4c954a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c920a
Function at 0x406de0
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_GetWindowLongA
or eax, 0x80
push eax
push 0xffffffffffffffec
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_SetWindowLongA
push 5
mov eax, dword [0x40a930]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x40110b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x410004]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401158
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x3ff
push 0x400
push eax
call fcn.00401645
lea eax, [ebp - 0x404]
push eax
call fcn.00401645
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401b66
leave
ret

Function at 0x401645
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x401654
pop dword [ebp - 0xc]
mov eax, 0x401654
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x10fb410f
add dword [ebp - 0x1c], 0x3d57043c
mov dword [ebp - 0x18], 0xa290397b
sub dword [ebp - 0x18], 0x705ced36
mov dword [ebp - 0x14], 0x594034ea
add dword [ebp - 0x14], 0xf30c0f44
mov dword [ebp - 0x10], 0xc4239923
add dword [ebp - 0x10], 0x3bdc66dd
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xf3e1b16a
add dword [ebp - 0x1c], 0x8090b7ec
mov dword [ebp - 0x18], 0xe7f5ad01
sub dword [ebp - 0x18], 0xa6894b8c
mov dword [ebp - 0x14], 0xe9a2c897
add dword [ebp - 0x14], 0x79cca3d5
mov dword [ebp - 0x10], 0x9a4e94b7
add dword [ebp - 0x10], 0x65b16b49
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x42c0b3b6
sub eax, 0x427fe36e
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x38f2d
push 0
call eax
mov ecx, 0x45e7
mov edx, eax
mov ebx, 0x8b808dad
sub ebx, 0x8b3eddad
add ebx, dword [ebp - 0xc]
mov esi, 0x895d64ab
add dword [ebp - 8], edi
mov edi, dword [ebx]
add edi, esi
xor dword [ebp - 4], 0x8f1e482
mov dword [edx], edi
sub dword [ebp - 8], ebx
add edx, 0x8415f1a6
add edx, 0x7bea0e5e
add ebx, 4
loop 0x401760
add eax, 0x6cb1c485
sub eax, 0x6cb0ba16
mov ebx, eax
add eax, 0x3083ec92
add eax, 0xcf7c1373
mov ecx, 0xeeb8b063
sub ecx, 0xee78b063
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d
Function at 0x402ad6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRTD.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402b06
push 0x40c888
call dword [sym.imp.MSVCRTD.dll_perror]
add esp, 4
push 1
call dword [sym.imp.MSVCRTD.dll_exit]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40315c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov dword [ebp - 0x128], 2
mov byte [ebp - 8], 0x3b
mov byte [ebp - 7], 0
push 0x40ca1c
call dword [sym.imp.MSVCRTD.dll_getenv]
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4031cd
mov eax, dword [ebp - 0xc]
push eax
call sub.MSVCRTD.dll_strlen
add esp, 4
add eax, 0x28
push eax
call fcn.00402ad6
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0x40ca28
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.MSVCRTD.dll_sprintf]
add esp, 0xc
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.00401d8e
add esp, 8
push 0x104
lea ecx, [ebp - 0x124]
push ecx
call fcn.0040414a
add esp, 8
and eax, 0xff
test eax, eax
jne 0x403200
push 1
push 0x40ca3c
call fcn.004044bb
add esp, 8
xor al, al
jmp 0x40333f
lea edx, [ebp - 0x124]
push edx
call sub.MSVCRTD.dll_strlen
add esp, 4
add eax, 0x28
push eax
call fcn.00402ad6
add esp, 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x124]
push eax
push 0x40ca60
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.MSVCRTD.dll_sprintf]
add esp, 0xc
push 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.00401d8e
add esp, 8
mov dword [ebp - 4], 0x28
lea eax, [ebp - 0x124]
push eax
call sub.MSVCRTD.dll_strlen
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
jmp 0x403270
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x128]
jge 0x40329f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax*4 + 0x40c018]
push ecx
call sub.MSVCRTD.dll_strlen
add esp, 4
mov edx, dword [ebp - 0x20]
add edx, eax
mov eax, dword [ebp - 4]
lea ecx, [eax + edx + 1]
mov dword [ebp - 4], ecx
jmp 0x403267
mov edx, dword [ebp - 4]
add edx, 1
push edx
call fcn.00402ad6
add esp, 4
mov dword [ebp - 0x10], eax
push 0x40ca78
mov eax, dword [ebp - 0x10]
push eax
call sub.MSVCRTD.dll_strcpy
add esp, 8
mov dword [ebp - 0x1c], 0
jmp 0x4032d4
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
cmp edx, dword [ebp - 0x128]
jge 0x40331b
lea eax, [ebp - 0x124]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCRTD.dll_strcat
add esp, 8
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx*4 + 0x40c018]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCRTD.dll_strcat
add esp, 8
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.MSVCRTD.dll_strcat
add esp, 8
jmp 0x4032cb
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCRTD.dll_strlen
add esp, 4
mov edx, dword [ebp - 0x10]
mov byte [edx + eax - 1], 0
push 0
mov eax, dword [ebp - 0x10]
push eax
call fcn.00401d8e
add esp, 8
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x403627
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18c
push 0x104
lea eax, [ebp - 0x184]
push eax
call fcn.00404108
add esp, 8
push 0x40d0d4
lea ecx, [ebp - 0x184]
push ecx
call dword [sym.imp.MSVCRTD.dll_fopen]
add esp, 8
mov dword [ebp - 0x188], eax
cmp dword [ebp - 0x188], 0
jne 0x40368d
lea edx, [ebp - 0x184]
push edx
push 0x40d0d8
mov eax, dword [sym.imp.MSVCRTD.dll__iob]
add eax, 0x40
push eax
call dword [sym.imp.MSVCRTD.dll_fprintf]
add esp, 0xc
mov eax, 1
jmp 0x4036ea
mov ecx, dword [ebp - 0x188]
push ecx
push 0x80
push 1
lea edx, [ebp - 0x80]
push edx
call dword [sym.imp.MSVCRTD.dll_fread]
add esp, 0x10
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
je 0x4036d8
mov eax, dword [sym.imp.MSVCRTD.dll__iob]
add eax, 0x20
push eax
mov ecx, dword [ebp - 0x18c]
push ecx
push 1
lea edx, [ebp - 0x80]
push edx
call dword [sym.imp.MSVCRTD.dll_fwrite]
add esp, 0x10
jmp 0x40368d
mov eax, dword [ebp - 0x188]
push eax
call dword [sym.imp.MSVCRTD.dll_fclose]
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x403dda
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.00403ef5
add esp, 8
and eax, 0xff
test eax, eax
jne 0x403e11
push 1
push 0x40d2d8
call fcn.004044bb
add esp, 8
push 2
call dword [sym.imp.MSVCRTD.dll_exit]
push 0
call fcn.00403dd0
push eax
mov edx, dword [ebp + 0x10]
push edx
call fcn.004036ee
add esp, 0xc
cmp eax, 1
jge 0x403e41
push 1
push 0x40d30c
call fcn.004044bb
add esp, 8
push 1
call dword [sym.imp.MSVCRTD.dll_exit]
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004019d9
add esp, 0xc
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0x18]
mov byte [edx], 0
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00403fe9
add esp, 0x10
and eax, 0xff
test eax, eax
jne 0x403ef0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0x40d344
mov ecx, dword [ebp - 8]
push ecx
call sub.MSVCRTD.dll_strlen
add esp, 4
mov esi, eax
mov edx, dword [ebp - 4]
push edx
call sub.MSVCRTD.dll_strlen
add esp, 4
add esi, eax
mov eax, dword [ebp + 0x18]
push eax
call sub.MSVCRTD.dll_strlen
add esp, 4
add esi, eax
push esi
call fcn.00402ad6
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.MSVCRTD.dll_sprintf]
add esp, 0x10
push 1
mov edx, dword [ebp - 0xc]
push edx
call fcn.004044bb
add esp, 8
push 4
call dword [sym.imp.MSVCRTD.dll_exit]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4045f2
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
push 0x104
lea eax, [ebp - 0x114]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x404692
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
lea eax, [ebp - 0x114]
push eax
call fcn.00405837
add esp, 8
test eax, eax
je 0x40468d
cmp dword [ebp - 4], 0
je 0x404667
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x114]
push edx
call fcn.004056d8
add esp, 8
test eax, eax
jle 0x40468d
cmp dword [ebp - 4], 0
je 0x40467a
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.MSVCRTD.dll__strdup]
add esp, 4
mov dword [ebp - 4], eax
jmp 0x404609
cmp dword [ebp - 4], 0
jne 0x40469f
xor eax, eax
jmp 0x404747
lea edx, [ebp - 0xc]
push edx
push 0x20019
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4046dd
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
cmp dword [ebp - 0xc], 0
je 0x4046d9
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x404747
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
mov dword [ebp - 8], 0x104
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x114]
push eax
push 0
push 0
push 0x40d72c
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x404727
cmp dword [ebp - 0xc], 0
je 0x404723
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x404747
cmp dword [ebp - 0xc], 0
je 0x404737
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x114]
push ecx
call dword [sym.imp.MSVCRTD.dll__strdup]
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x40474b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push 0x104
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404783
push 1
push 0x40d738
call fcn.004044bb
add esp, 8
push 1
call dword [sym.imp.MSVCRTD.dll_exit]
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCRTD.dll_strlen
add esp, 4
push eax
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRTD.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x4047ad
jmp 0x404885
mov dword [ebp - 0x108], 0x40d768
mov ecx, dword [ebp - 0x108]
push ecx
push 0x40d770
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x104]
push eax
call sub.MSVCRTD.dll_strcpy
add esp, 8
push eax
call sub.MSVCRTD.dll_strcat
add esp, 8
push eax
call sub.MSVCRTD.dll_strcat
add esp, 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x108]
mov dword [ecx], edx
xor eax, eax
mov al, byte [0x40f0b2]
test eax, eax
je 0x404868
lea ecx, [ebp - 0x104]
push ecx
push 0x40d778
call dword [sym.imp.MSVCRTD.dll_printf]
add esp, 8
mov dword [ebp - 0x10c], 0
jmp 0x40482e
mov edx, dword [ebp - 0x10c]
add edx, 1
mov dword [ebp - 0x10c], edx
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + eax*4], 0
je 0x40485a
mov edx, dword [ebp - 0x10c]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx*4]
push ecx
push 0x40d784
call dword [sym.imp.MSVCRTD.dll_printf]
add esp, 8
jmp 0x40481f
push 0x40d78c
call dword [sym.imp.MSVCRTD.dll_printf]
add esp, 4
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.MSVCRTD.dll__spawnv]
add esp, 0xc
push eax
call dword [sym.imp.MSVCRTD.dll_exit]
mov esp, ebp
pop ebp
ret
Function at 0x404ab7
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0xffffffff
je 0x404ace
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0xffffffff
jne 0x404ad5
xor eax, eax
jmp 0x404c74
push 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRTD.dll__lseek]
add esp, 0xc
test eax, eax
jge 0x404af6
xor eax, eax
jmp 0x404c74
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
add eax, 1
push eax
call dword [sym.imp.MSVCRTD.dll_malloc]
add esp, 4
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
jne 0x404b19
xor eax, eax
jmp 0x404c74
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x40]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRTD.dll__read]
add esp, 0xc
mov edx, dword [ebp + 0xc]
cmp eax, dword [edx + 4]
je 0x404b4d
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
xor eax, eax
jmp 0x404c74
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0xc], 0
jne 0x404b6b
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 4]
mov ecx, dword [ebp - 0x40]
mov byte [ecx + eax], 0
mov eax, dword [ebp - 0x40]
jmp 0x404c74
mov edx, dword [ebp + 0xc]
cmp dword [edx + 0xc], 8
jne 0x404c72
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x34], edx
push 0x38
push 0x40d7f8
push 0xfffffffffffffff1
lea eax, [ebp - 0x38]
push eax
call fcn.00405d36
add esp, 0x10
test eax, eax
jge 0x404bc9
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
xor eax, eax
jmp 0x404c74
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
add eax, 1
push eax
call dword [sym.imp.MSVCRTD.dll_malloc]
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x404bf5
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
xor eax, eax
jmp 0x404c74
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x28], ecx
push 1
lea edx, [ebp - 0x38]
push edx
call fcn.00405eda
add esp, 8
test eax, eax
jge 0x404c33
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
xor eax, eax
jmp 0x404c74
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x3c]
mov byte [ecx + eax], 0
mov edx, dword [ebp - 0x40]
push edx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
lea eax, [ebp - 0x38]
push eax
call fcn.00405cac
add esp, 4
test eax, eax
jge 0x404c6d
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.MSVCRTD.dll_free]
add esp, 4
xor eax, eax
jmp 0x404c74
mov eax, dword [ebp - 0x3c]
jmp 0x404c74
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40a72a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
push 0x40f084
mov ecx, dword [sym.imp.MSVCRTD.dll__iob]
add ecx, 0x40
push ecx
call dword [sym.imp.MSVCRTD.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.MSVCRTD.dll_exit]
pop ebp
ret

Function at 0x40a900
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b398
push 0x40aa90
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRTD.dll___set_app_type]
add esp, 4
mov dword [0x40f100], 0xffffffff
mov eax, dword [0x40f100]
mov dword [0x40f104], eax
call dword [sym.imp.MSVCRTD.dll___p__fmode]
mov ecx, dword [0x40f0fc]
mov dword [eax], ecx
call dword [sym.imp.MSVCRTD.dll___p__commode]
mov edx, dword [0x40f0f8]
mov dword [eax], edx
mov eax, dword [sym.imp.MSVCRTD.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x40f108], ecx
call fcn.0040a7a3
cmp dword [0x40f090], 0
jne 0x40a991
push 0x40aa80
call dword [sym.imp.MSVCRTD.dll___setusermatherr]
add esp, 4
call fcn.0040aa60
push 0x40c00c
push 0x40c008
call sub.MSVCRTD.dll__initterm
add esp, 8
mov edx, dword [0x40f0f4]
mov dword [ebp - 0x28], edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [0x40f0f0]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.MSVCRTD.dll___getmainargs]
add esp, 0x14
push 0x40c004
push section..data
call sub.MSVCRTD.dll__initterm
add esp, 8
call dword [sym.imp.MSVCRTD.dll___p___initenv]
mov edx, dword [ebp - 0x20]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call section..text
add esp, 0xc
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.MSVCRTD.dll_exit]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x30]
push edx
call sub.MSVCRTD.dll__XcptFilter
add esp, 8
ret
Function at 0x51ae30
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x5ccbab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.005c0445
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x51aeb2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.005bd034
mov eax, dword [eax]
push 0xac3228
push eax
call fcn.005ae3f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.005c06d0
test bl, bl
je 0x51aeb2
push 0xac3228
lea ecx, [esp + 0xc]
call fcn.005c0a60
push 0xac6ef4
lea ecx, [esp + 0xc]
call fcn.005c0a60
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x51aeee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.005c06d0
jmp 0x51afb9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x51af72
lea edx, [esp + 0x7c]
push 0xac6ef0
push edx
call fcn.005ae3f4
add esp, 8
test eax, eax
je 0x51af72
lea eax, [esp + 0x7c]
push 0xac6eec
push eax
call fcn.005ae3f4
add esp, 8
test eax, eax
je 0x51af72
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x51af02
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.005c06d0
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x51c210
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x51c272
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc