joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402550
Capabilities:
Get hostname

Disassembly:
sub esp, 0x42c
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x22e]
mov word [esp + 0x22c], 0
rep stosd dword es:[edi], eax
mov cl, byte [0x40b1fc]
xor edx, edx
stosw word es:[edi], ax
mov eax, dword [0x40b1f8]
mov word [esp + 0xd], dx
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0x11], eax
mov byte [esp + 0xc], cl
mov dword [esp + 0x15], eax
mov byte [esp + 0xf], dl
mov byte [esp + 0x10], dl
mov dword [esp + 0x19], eax
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
mov word [esp + 0x1d], ax
push ecx
push edx
mov dword [esp + 0x28], 0x10
mov byte [esp + 0x27], al
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea eax, [esp + 0x10]
push eax
call fcn.00402520
lea ecx, [esp + 0x230]
mov esi, eax
push ecx
call fcn.00402670
add esp, 8
lea edx, [esp + 0x128]
lea eax, [esp + 0x22c]
push 0
push 0
push 0x104
push edx
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea ecx, [esp + 0x24]
push 0x104
lea edx, [esp + 0x12c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov eax, dword [esp + 0x438]
test eax, eax
jne 0x40263b
lea eax, [esp + 8]
lea ecx, [esp + 0x24]
push eax
push esi
push ecx
push str._s_08X_s
jmp 0x402650
cmp eax, 1
jne 0x40265e
lea edx, [esp + 8]
lea eax, [esp + 0x24]
push edx
push esi
push eax
push str._s_08X__s
push 0x40c1e0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
pop edi
mov eax, 0x40c1e0
pop esi
add esp, 0x42c
ret

Function at 0x402670
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x218
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x40b204]
mov edx, dword [0x40b208]
stosw word es:[edi], ax
mov eax, dword [str.VOCMRD_]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov eax, dword [0x40b20c]
lea ecx, [esp + 8]
mov dword [esp + 0x10], edx
push ecx
mov dword [esp + 0x18], eax
xor edi, edi
call fcn.00403e63
add esp, 4
test eax, eax
jbe 0x4026e3
lea esi, [esp + 8]
inc word [esi]
lea edx, [esp + 8]
push edx
inc edi
add esi, 2
call fcn.00403e63
add esp, 4
cmp edi, eax
jb 0x4026cb
cmp word [0x40c2e4], 0
je 0x402713
mov eax, dword [esp + 0x224]
push 0x103
push 0x40c2e4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
pop edi
mov eax, 1
pop esi
add esp, 0x218
ret
lea ecx, [esp + 0x18]
push ecx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 8]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00403c30
add esp, 8
lea ecx, [esp + 0x18]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea edx, [esp + 0x18]
push 0x103
push edx
push 0x40c2e4
call esi
mov ecx, dword [esp + 0x224]
lea eax, [esp + 0x18]
push 0x103
push eax
push ecx
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x218
ret
Function at 0x402780
Capabilities:
Get common file path

Disassembly:
sub esp, 0x218
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x1a]
mov word [esp + 0x18], 0
rep stosd dword es:[edi], eax
mov ecx, dword [0x40b214]
mov edx, dword [0x40b218]
stosw word es:[edi], ax
mov eax, dword [str.Ldch__]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov ax, word [0x40b21c]
lea ecx, [esp + 8]
mov dword [esp + 0x10], edx
push ecx
mov word [esp + 0x18], ax
xor edi, edi
call fcn.00403e63
add esp, 4
test eax, eax
jbe 0x4027f5
lea esi, [esp + 8]
inc word [esi]
lea edx, [esp + 8]
push edx
inc edi
add esi, 2
call fcn.00403e63
add esp, 4
cmp edi, eax
jb 0x4027dd
cmp word [0x40c4ec], 0
je 0x402825
mov eax, dword [esp + 0x224]
push 0x103
push 0x40c4ec
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
pop edi
mov eax, 1
pop esi
add esp, 0x218
ret
lea ecx, [esp + 0x18]
push ecx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 8]
lea eax, [esp + 0x18]
push edx
push eax
call fcn.00403c30
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
add esp, 8
lea ecx, [esp + 0x18]
push 0x103
push ecx
push 0x40c4ec
call esi
mov eax, dword [esp + 0x224]
lea edx, [esp + 0x18]
push 0x103
push edx
push eax
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x218
ret

Function at 0x402880
Capabilities:
Create directory
Set file attributes

Disassembly:
sub esp, 0x1c
mov ecx, 6
lea eax, [esp]
push esi
push edi
mov esi, str.T9_QDBXBKDQ_
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push eax
xor edi, edi
call fcn.00403e63
add esp, 4
test eax, eax
jbe 0x4028c6
lea esi, [esp + 8]
inc word [esi]
lea ecx, [esp + 8]
push ecx
inc edi
add esi, 2
call fcn.00403e63
add esp, 4
cmp edi, eax
jb 0x4028ae
movsx dx, byte [esp + 0x28]
lea eax, [esp + 8]
push 0
push eax
mov word [esp + 0x10], dx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [esp + 8]
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, dword [esp + 0x2c]
lea edx, [esp + 8]
push 0x103
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret

Function at 0x402910
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x410
lea eax, [esp + 0x208]
push esi
push 0x103
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, dword [esp + 0x418]
lea ecx, [esp + 4]
push esi
push ecx
call fcn.00403c5a
lea edx, [esp + 0xc]
push str..exe
push edx
call fcn.00403c30
lea eax, [esp + 0x14]
push 0
lea ecx, [esp + 0x220]
push eax
push ecx
call fcn.004013e0
add esp, 0x1c
test eax, eax
je 0x402971
push 6
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
add esp, 0x410
ret
Function at 0x402c10
Capabilities:
Get common file path

Disassembly:
sub esp, 0xa44
mov ecx, 0xf
lea eax, [esp]
push esi
push edi
mov esi, str._wbnox_dwd
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
push eax
xor edi, edi
call fcn.00403e63
add esp, 4
test eax, eax
jbe 0x402c57
lea esi, [esp + 8]
inc word [esi]
lea ecx, [esp + 8]
push ecx
inc edi
add esi, 2
call fcn.00403e63
add esp, 4
cmp edi, eax
jb 0x402c3f
lea edx, [esp + 0x44]
push edx
call fcn.00402670
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
add esp, 4
lea eax, [esp + 0x24c]
push 0x104
push eax
call esi
lea ecx, [esp + 8]
lea edx, [esp + 0x24c]
push ecx
push edx
call fcn.00403c30
lea eax, [esp + 0x4c]
lea ecx, [esp + 0x254]
push eax
push ecx
call fcn.00403c30
lea edx, [esp + 0x25c]
push str..NLS
push edx
call fcn.00403c30
lea eax, [esp + 0x264]
push eax
call fcn.00403e63
mov edi, dword [esp + 0xa6c]
lea ecx, [esp + eax*2 + 0x268]
push ecx
push edi
call fcn.00402880
push 0xffffffffffffffff
lea edx, [esp + 0x274]
push 0
push edx
call fcn.00401870
lea eax, [esp + 0x74]
push eax
call fcn.00402780
add esp, 0x34
lea ecx, [esp + 0x24c]
push 0x104
push ecx
call esi
lea edx, [esp + 8]
lea eax, [esp + 0x24c]
push edx
push eax
call fcn.00403c30
lea ecx, [esp + 0x4c]
lea edx, [esp + 0x254]
push ecx
push edx
call fcn.00403c30
lea eax, [esp + 0x25c]
push str..ldf
push eax
call fcn.00403c30
lea ecx, [esp + 0x264]
push ecx
call fcn.00403e63
lea edx, [esp + eax*2 + 0x268]
push edx
push edi
call fcn.00402880
push 0xffffffffffffffff
lea eax, [esp + 0x274]
push 0
push eax
call fcn.00401870
add esp, 0x30
mov al, 1
pop edi
pop esi
add esp, 0xa44
ret

Function at 0x402db0
Capabilities:
Get common file path

Disassembly:
sub esp, 0xa44
mov ecx, 0xf
lea eax, [esp]
push esi
push edi
mov esi, str._wbnox_dwd
lea edi, [esp + 8]
rep movsd dword es:[edi], dword [esi]
push eax
xor edi, edi
call fcn.00403e63
add esp, 4
test eax, eax
jbe 0x402df7
lea esi, [esp + 8]
inc word [esi]
lea ecx, [esp + 8]
push ecx
inc edi
add esi, 2
call fcn.00403e63
add esp, 4
cmp edi, eax
jb 0x402ddf
lea edx, [esp + 0x44]
push edx
call fcn.00402670
add esp, 4
lea eax, [esp + 0x24c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 8]
lea edx, [esp + 0x24c]
push ecx
push edx
call fcn.00403c30
lea eax, [esp + 0x254]
push eax
call fcn.00403e63
mov edx, dword [esp + 0xa5c]
lea ecx, [esp + eax*2 + 0x258]
push ecx
push edx
call fcn.00402880
lea eax, [esp + 0x260]
push str..NLS
push eax
call fcn.00403c30
lea ecx, [esp + 0x60]
lea edx, [esp + 0x268]
push ecx
push edx
call fcn.00403c30
push 0xffffffffffffffff
lea eax, [esp + 0x274]
push 0
push eax
call fcn.00401870
add esp, 0x30
mov al, 1
pop edi
pop esi
add esp, 0xa44
ret
Function at 0x402e90
Capabilities:
Get common file path
Write file on windows

Disassembly:
sub esp, 0x454
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x256]
mov word [esp + 0x254], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x8c
mov esi, str._dbgn
lea edi, [esp + 0x20]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x402ef6
mov cl, byte [esp + edx + 0x20]
lea edi, [esp + 0x20]
inc cl
xor eax, eax
mov byte [esp + edx + 0x20], cl
or ecx, 0xffffffff
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x402ed9
mov edx, dword [0x40b31c]
mov eax, dword [str.ltrs_a_s]
mov ecx, dword [0x40b318]
mov dword [esp + 0x10], edx
mov dword [esp + 8], eax
mov eax, dword [0x40b320]
mov dword [esp + 0xc], ecx
mov cx, word [0x40b324]
lea edx, [esp + 8]
mov dword [esp + 0x14], eax
push edx
mov word [esp + 0x1c], cx
xor edi, edi
call fcn.00403e63
add esp, 4
test eax, eax
jbe 0x402f57
lea esi, [esp + 8]
inc word [esi]
lea eax, [esp + 8]
push eax
inc edi
add esi, 2
call fcn.00403e63
add esp, 4
cmp edi, eax
jb 0x402f3f
lea ecx, [esp + 0x254]
push ecx
push 0x103
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 8]
lea eax, [esp + 0x254]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0
push 2
push 0
push 1
lea ecx, [esp + 0x268]
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402fc7
lea edx, [esp + 0x1c]
push 0
lea eax, [esp + 0x24]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [esp + 0x28]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea edx, [esp + 0x258]
push 0
push edx
call fcn.00401870
add esp, 0xc
pop edi
pop esi
add esp, 0x454
ret
Function at 0x403310
Capabilities:
Get common file path

Disassembly:
sub esp, 0x114
push edi
xor edx, edx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], dl
rep stosd dword es:[edi], eax
mov ecx, dword [0x40b5a4]
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [str.vhmvnqc3_cnb]
mov dword [esp + 8], ecx
mov cl, byte [0x40b5ac]
mov dword [esp + 4], eax
mov eax, dword [0x40b5a8]
mov byte [esp + 0x10], cl
mov dword [esp + 0xc], eax
lea edi, [esp + 4]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x403380
mov al, byte [esp + edx + 4]
lea edi, [esp + 4]
inc al
or ecx, 0xffffffff
mov byte [esp + edx + 4], al
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x403363
lea edx, [esp + 0x14]
push edx
push 0xfe
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [esp + 4]
lea ecx, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x14]
push 0x102
lea eax, [esp + 0x18]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
lea ecx, [esp + 0x14]
push ecx
call fcn.00402010
add esp, 4
mov al, 1
pop edi
add esp, 0x114
ret
Function at 0x403500
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
sub esp, 0x550
mov dx, word [0x40d1d4]
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x212]
mov word [esp + 0x210], dx
mov word [esp + 0x314], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x316]
mov word [esp + 0x10c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x10e]
mov word [esp + 8], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xa]
mov dword [esp + 0x418], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x4f
xor eax, eax
lea edi, [esp + 0x41c]
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x214]
push 8
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0x210]
lea edx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 8]
push str..l
push eax
call esi
lea ecx, [esp + 8]
push 0x40bad8
push ecx
call esi
lea edx, [esp + 0x418]
lea eax, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4035f5
pop edi
xor al, al
pop esi
add esp, 0x550
ret
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ecx, [esp + 0x448]
lea edx, [esp + 0x214]
push ecx
push edx
lea eax, [esp + 0x320]
push str._s_s
push eax
call edi
lea ecx, [esp + 0x120]
lea edx, [esp + 0x328]
push ecx
push edx
call fcn.004033d0
add esp, 0x18
test eax, eax
je 0x403675
lea eax, [esp + 0x110]
push eax
call fcn.004012b0
add esp, 4
test eax, eax
je 0x403675
lea ecx, [esp + 0x110]
push ecx
call fcn.004036b0
add esp, 4
test al, al
je 0x403675
lea edx, [esp + 0x110]
push edx
call fcn.00402010
add esp, 4
lea eax, [esp + 0x41c]
push eax
push esi
call ebx
test eax, eax
jne 0x403602
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call fcn.00403310
pop ebx
pop edi
mov al, 1
pop esi
add esp, 0x550
ret
Function at 0x404f49
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40bc88
cmp edx, dword [eax]
je 0x404f6b
add eax, 8
inc ecx
cmp eax, 0x40bd18
jl 0x404f5c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40bc88]
jne 0x405099
mov eax, dword [0x40d1e4]
cmp eax, 1
je 0x405073
test eax, eax
jne 0x404f9c
cmp dword [0x40bbd4], 1
je 0x405073
cmp edx, 0xfc
je 0x405099
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404fd3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404290
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405d50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x405016
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405d50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4094e0
push edi
call fcn.00406cd0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404290
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004042a0
lea eax, [ebp - 0xa0]
push 0x4094c0
push eax
call fcn.004042a0
push dword [esi + 0x40bc8c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004042a0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00406c44
add esp, 0x2c
pop edi
jmp 0x405099
lea eax, [ebp + 8]
lea esi, [esi + 0x40bc8c]
push 0
push eax
push dword [esi]
call fcn.00405d50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x410b3d
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x250]
push esi
xor esi, esi
push edi
mov edi, esi
cmp eax, 0xffffffff
jne 0x410b5a
inc edi
jmp 0x410c31
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx + 0x250], 0xffffffff
cmp dword [ebp + 8], esi
je 0x410c31
cmp dword [ebx + 0x14], esi
jne 0x410c31
push esi
push esi
push 3
push esi
push esi
push 0xc0000000
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x250], eax
cmp eax, 0xffffffff
jne 0x410bb8
call esi
mov edi, eax
test edi, edi
jle 0x410bb6
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x410c31
push 0
push 0
push dword [ebx + 0x244]
push dword [ebx + 0x240]
push dword [ebx + 0x250]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x410bf0
call esi
mov edi, eax
test edi, edi
jle 0x410bee
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x410c31
push dword [ebx + 0x250]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x410c18
call esi
mov edi, eax
test edi, edi
jle 0x410c16
and edi, 0xffff
or edi, 0x80070000
test edi, edi
js 0x410c31
mov eax, dword [ebx + 0x244]
mov edx, dword [ebx + 0x240]
mov esi, dword [ebx + 0x20]
mov ecx, dword [esi]
push eax
push edx
push eax
push edx
push esi
call dword [ecx + 0x50]
mov eax, dword [ebx + 0x250]
cmp eax, 0xffffffff
je 0x410c4a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx + 0x250], 0xffffffff
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x410f5c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42104c]
jne 0x413fe3
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x422720], eax
mov dword [0x42271c], ecx
mov dword [0x422718], edx
mov dword [0x422714], ebx
mov dword [0x422710], esi
mov dword [0x42270c], edi
mov word [0x422738], ss
mov word [0x42272c], cs
mov word [0x422708], ds
mov word [0x422704], es
mov word [0x422700], fs
mov word [0x4226fc], gs
pushfd
pop dword [0x422730]
mov eax, dword [ebp]
mov dword [0x422724], eax
mov eax, dword [ebp + 4]
mov dword [0x422728], eax
lea eax, [ebp + 8]
mov dword [0x422734], eax
mov eax, dword [ebp - 0x320]
mov dword [0x422670], 0x10001
mov eax, dword [0x422728]
mov dword [0x422624], eax
mov dword [0x422618], 0xc0000409
mov dword [0x42261c], 1
mov eax, dword [0x42104c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x421050]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x422668], eax
push 1
call fcn.00415efd
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x402cf0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x422668], 0
jne 0x4140cf
push 1
call fcn.00415efd
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret
Function at 0x402a36
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 [0x423f50]
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 0x402aca
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a87
cmp dword [ebp + 0x10], ebx
jne 0x402abe
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a36
test eax, eax
jne 0x402a99
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a6e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405e88
cmp eax, ebx
je 0x402ad1
push ebx
push dword [0x423f50]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402aca
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 [0x423f50], ebx
jne 0x402ac7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ac7
jmp 0x402aca

Function at 0x402f18
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 0x402f45
mov ecx, dword [0x423ef8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x417044], eax
push dword [0x409018]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403043
cmp eax, edi
jl 0x40303c
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 0x403039
cmp dword [ebp - 4], esi
jne 0x403039
push dword [ebp + 8]
add dword [0x417044], esi
call fcn.00403043
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40303c
cmp dword [ebp + 0x10], edi
jne 0x403008
cmp dword [ebp + 8], edi
jle 0x403034
mov esi, 0x413040
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402fb8
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 0x403039
cmp edi, dword [ebp - 4]
jne 0x403039
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 0x403004
cmp dword [ebp + 0x14], edi
jne 0x403004
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x417044], eax
cmp dword [ebp + 8], 0
jg 0x402fab
jmp 0x403034
push 0xfffffffffffffffe
jmp 0x40303b
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403013
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 0x403039
mov eax, dword [ebp - 4]
add dword [0x417044], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40303c
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10