joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401490
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
cld
jmp 0x40149c
call fcn.00402079
call fcn.0040340a
mov edi, eax
cmp dword [ebp + 8], 0
je 0x4014be
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401020
jmp 0x4015a2
cmp edi, 0
je 0x401596
push 0
push 0
push 0
call fcn.00402476
cmp eax, 1
je 0x401596
cmp eax, 0xffffffff
je 0x401596
push 0x4a00
push 0x40e342
lea edx, [ebp - 0x104]
push edx
call fcn.004023be
test eax, eax
je 0x401563
lea edx, [ebp - 0x104]
push edx
lea edx, [ebp - 0x208]
push edx
call fcn.00401682
mov eax, 0x5c
push eax
lea edx, [ebp - 0x104]
push edx
call fcn.004015f5
test eax, eax
je 0x401550
inc eax
mov dword [eax], 0x7443764e
mov dword [eax + 4], 0x78652e6c
mov dword [eax + 8], 0x65
lea edx, [ebp - 0x104]
push edx
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.kernel32.dll_MoveFileA]
push 0
lea edx, [ebp - 0x104]
push edx
call fcn.00404e19
cmp eax, 1
jne 0x401563
push 0x3e8
call dword [sym.imp.kernel32.dll_Sleep]
call fcn.00404b83
cmp eax, 1
jne 0x401596
call fcn.00402f6a
lea eax, [0x417228]
push 0
push 0x4061d3
call fcn.004025cc
call fcn.00402086
jmp 0x4015a2
push 0
push 0x4061da
call fcn.004025cc
call fcn.00402086
leave
ret 8

Function at 0x4018d2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
pushal
std
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
lea edi, [esi + ecx + 7]
push esi
push ecx
lea esi, [esi + ecx]
dec esi
rep movsb byte es:[edi], byte [esi]
pop ecx
pop esi
lea eax, [ecx + 8]
mov dword [ebp - 4], eax
mov edi, esi
xor eax, eax
test cl, 3
je 0x4018fe
inc eax
shr ecx, 2
add ecx, eax
shl ecx, 2
call fcn.004019e4
cld
stosd dword es:[edi], eax
mov edx, eax
lea eax, [ecx + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
stosd dword es:[edi], eax
shr ecx, 2
mov esi, edi
lodsd eax, dword [esi]
xor eax, edx
stosd dword es:[edi], eax
mov edx, eax
loop 0x40191e
popal
mov eax, dword [ebp - 8]
leave
ret 8

Function at 0x4021f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
pushal
mov dword [ebp - 8], 0
cmp dword [ebp + 0x14], 1
jne 0x40220b
mov dword [ebp + 0x14], 3
push 0
push pe_nt_image_headers32
push 2
push 0
push dword [ebp + 0x14]
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
inc eax
je 0x402254
lea eax, [ebp - 4]
push 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.kernel32.dll_WriteFile]
mov dword [ebp - 8], eax
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
test eax, eax
jne 0x402254
mov dword [ebp - 8], 0
popal
mov eax, dword [ebp - 8]
leave
ret 0x10
Function at 0x4022be
Capabilities:
Get file attributes
Get file size
Read file on windows
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
pushal
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0x64
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
push pe_nt_image_headers32
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
push 0
push pe_nt_image_headers32
push 3
push 0
push 0
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
inc eax
je 0x40237f
push 0
push ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ecx, dword [ebp + 0x14]
jecxz 0x40231d
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
jecxz 0x402324
mov eax, ecx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x402343
cmp dword [ebp + 0x10], 0
je 0x4023a3
push dword [ebp + 0x10]
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
test eax, eax
je 0x4023a3
mov esi, eax
mov edi, esi
lea eax, [ebp - 0xc]
push 0
push eax
push dword [ebp + 0x10]
push esi
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
mov eax, dword [ebp - 0xc]
sub dword [ebp + 0x10], eax
je 0x40237a
test eax, eax
je 0x40237a
add esi, eax
dec dword [ebp - 8]
jne 0x402347
cmp dword [ebp + 0xc], 0
je 0x4023a3
push edi
call dword [sym.imp.kernel32.dll_LocalFree]
xor edi, edi
mov dword [ebp - 0x10], edi
jmp 0x4023a3
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileA]
mov ebx, eax
inc eax
jne 0x40230d
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
popal
mov eax, dword [ebp - 0x10]
leave
ret 0x10

Function at 0x402476
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
pushal
call 0x4024af
push ebx
dec edi
inc esi
push esp
push edi
inc ecx
push edx
inc ebp
pop esp
dec ebp
imul esp, dword [ebx + 0x72], 0x666f736f
je 0x4024f4
push edi
imul ebp, dword [esi + 0x64], 0x5c73776f
inc ebx
jne 0x402515
jb 0x40250a
outsb dx, byte [esi]
je 0x4024fe
jb 0x40251e
imul ebp, dword [edi + 0x6e], 0x85c75e00
invalid
mov dword [ebp - 4], 0x186a0
add dword [eax], eax
push 0
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
lea edx, [ebp - 0x104]
push edx
push dword [ebp - 0x108]
push dword [ebp - 0x10c]
mov ch, 0xf8
invalid
call dword [sym.imp.advapi32.dll_RegEnumKeyExA]
cmp eax, 0x103
add byte [eax], al
je 0x402586
lea edx, [ebp - 0x104]
push edx
call fcn.0040240b
cmp eax, 1
je 0x40253b
inc dword [ebp - 0x108]
jmp 0x4024ef
cmp dword [ebp + 8], 0
je 0x40257c
lea edx, [ebp - 0x104]
push edx
push esi
call fcn.00401872
push dword [ebp + 8]
push eax
call fcn.00401682
cmp dword [ebp + 0xc], 0
je 0x40257c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 8
push 0
push 0
push dword [ebp - 0x10c]
call dword [sym.imp.advapi32.dll_RegGetValueA]
cmp eax, 0
jne 0x402586
mov dword [ebp - 0x110], 1
push dword [ebp - 0x10c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
popal
mov eax, dword [ebp - 0x110]
leave
ret 0xc
Function at 0x4024af
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
pushal
call 0x4024af
push ebx
dec edi
inc esi
push esp
push edi
inc ecx
push edx
inc ebp
pop esp
dec ebp
imul esp, dword [ebx + 0x72], 0x666f736f
je 0x4024f4
push edi
imul ebp, dword [esi + 0x64], 0x5c73776f
inc ebx
jne 0x402515
jb 0x40250a
outsb dx, byte [esi]
je 0x4024fe
jb 0x40251e
imul ebp, dword [edi + 0x6e], 0x85c75e00
invalid
mov dword [ebp - 4], 0x186a0
add dword [eax], eax
push 0
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
lea edx, [ebp - 0x104]
push edx
push dword [ebp - 0x108]
push dword [ebp - 0x10c]
mov ch, 0xf8
invalid
call dword [sym.imp.advapi32.dll_RegEnumKeyExA]
cmp eax, 0x103
add byte [eax], al
je 0x402586
lea edx, [ebp - 0x104]
push edx
call fcn.0040240b
cmp eax, 1
je 0x40253b
inc dword [ebp - 0x108]
jmp 0x4024ef
cmp dword [ebp + 8], 0
je 0x40257c
lea edx, [ebp - 0x104]
push edx
push esi
call fcn.00401872
push dword [ebp + 8]
push eax
call fcn.00401682
cmp dword [ebp + 0xc], 0
je 0x40257c
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 8
push 0
push 0
push dword [ebp - 0x10c]
call dword [sym.imp.advapi32.dll_RegGetValueA]
cmp eax, 0
jne 0x402586
mov dword [ebp - 0x110], 1
push dword [ebp - 0x10c]
call dword [sym.imp.advapi32.dll_RegCloseKey]
popal
mov eax, dword [ebp - 0x110]
leave
ret 0xc

Function at 0x402f6a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
pushal
mov edi, 0x419108
push 0
push 0xa
push edi
call fcn.0040197f
push edi
call fcn.00401802
add edi, eax
lea edx, [eax + 1]
inc edi
push edi
mov esi, 0x409fa6
mov ecx, 0x14
rep movsb byte es:[edi], byte [esi]
mov esi, 0x409f42
mov ecx, 0x64
rep movsb byte es:[edi], byte [esi]
mov esi, 0x409fba
mov ecx, 0x4388
rep movsb byte es:[edi], byte [esi]
pop edi
lea eax, [edx + 0x4400]
push eax
push 0x419108
call fcn.004018d2
mov edi, eax
push section..bss
call fcn.00402f1a
push 0
push section..bss
push 0x412ff5
call fcn.00402613
push 1
push 0
push 0
push 0
call fcn.00403038
push section..bss
push 0x412dd8
call fcn.00401872
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
cmp eax, 0
jne 0x403035
push edi
push 0x419108
push 3
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegSetValueExA]
popal
leave
ret
Function at 0x40340a
Capabilities:
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov word [ebp - 0x24], 1
pushal
mov dword [ebp - 0x28], 0
mov edi, 0x4131fe
cld
mov eax, 0x402ce1
stosd dword es:[edi], eax
mov eax, 0x402b48
stosd dword es:[edi], eax
mov eax, 0x402c2b
stosd dword es:[edi], eax
mov eax, 0x402c89
stosd dword es:[edi], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004032ed
cmp eax, 1
je 0x4034c3
push 0x3e8
push 0x431bd0
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
mov al, byte [0x431bd0]
mov byte [0x431cd4], al
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.kernel32.dll_GetNativeSystemInfo]
push dword [ebp - 0x24]
pop dword [0x431938]
push 0x43193c
push 0x41307f
call fcn.0040225c
mov dword [0x431954], eax
test eax, eax
jne 0x4034a8
push 0x43193c
push 0x4130c3
call fcn.0040225c
test eax, eax
je 0x4034c3
mov dword [0x431954], eax
push 0x43195c
push 0x413104
call fcn.0040225c
mov dword [0x431958], eax
test eax, eax
je 0x4034c3
mov dword [ebp - 0x28], eax
popal
mov eax, dword [ebp - 0x28]
leave
ret

Function at 0x404125
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
xor ebx, ebx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405546
mov esi, eax
mov edi, dword [ebp + 0xc]
push 0
push 0x2c
lea edx, [ebp - 0x38]
push edx
call fcn.004017b5
mov ecx, esi
lea edx, [ebp - 0x38]
call fcn.0040267f
test eax, eax
je 0x4041ba
cmp byte [ebp - 0x25], 0xcc
jne 0x40417b
inc dword [ebp - 0xc]
jmp 0x4041aa
mov ecx, dword [ebp - 0xc]
jecxz 0x4041aa
cmp ecx, dword [ebp + 0x14]
jb 0x4041a3
mov eax, edi
sub eax, ecx
push ecx
push eax
push dword [ebp + 0x18]
call fcn.004040b2
cmp eax, 1
jne 0x4041ba
add dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x28]
jae 0x4041ba
mov dword [ebp - 0xc], 0
xor eax, eax
mov al, byte [ebp - 0x38]
add esi, eax
add edi, eax
add ebx, eax
cmp ebx, dword [ebp + 0x10]
jb 0x404162
popal
mov eax, dword [ebp - 8]
leave
ret 0x24

Function at 0x4041c2
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
mov dword [ebp - 7], 0
mov dword [ebp - 0xf], 0
mov dword [ebp - 0xb], 0
xor ebx, ebx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405546
mov esi, eax
mov edi, dword [ebp + 0xc]
push 0
push 0x39
lea edx, [ebp - 0x48]
push edx
call fcn.004017b5
mov ecx, esi
lea edx, [ebp - 0x48]
call fcn.00401a19
test eax, eax
je 0x404257
cmp byte [ebp - 0x30], 0xcc
jne 0x404218
inc dword [ebp - 0xf]
jmp 0x404247
mov ecx, dword [ebp - 0xf]
jecxz 0x404247
cmp ecx, dword [ebp + 0x14]
jb 0x404240
mov eax, edi
sub eax, ecx
push ecx
push eax
push dword [ebp + 0x18]
call fcn.004040b2
cmp eax, 1
jne 0x404257
add dword [ebp - 0xb], ecx
mov eax, dword [ebp - 0xb]
cmp eax, dword [ebp + 0x28]
jae 0x404257
mov dword [ebp - 0xf], 0
xor eax, eax
mov al, byte [ebp - 0x48]
add esi, eax
add edi, eax
add ebx, eax
cmp ebx, dword [ebp + 0x10]
jb 0x4041ff
popal
mov eax, dword [ebp - 0xb]
leave
ret 0x24
Function at 0x40425f
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
mov dword [ebp - 7], 0
mov dword [ebp - 0xf], 0
mov dword [ebp - 0xb], 0
xor ebx, ebx
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405546
mov esi, eax
mov edi, dword [ebp + 0xc]
push 0
push 0x39
lea edx, [ebp - 0x48]
push edx
call fcn.004017b5
mov ecx, esi
lea edx, [ebp - 0x48]
call fcn.00401a19
test eax, eax
jne 0x4042cf
mov edx, dword [ebp + 0xc]
add edx, ebx
push edx
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x24]
push dword [ebp + 8]
call fcn.00405482
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp + 0x10]
cmp ecx, eax
jbe 0x404319
sub eax, edx
jmp 0x40430e
cmp byte [ebp - 0x30], 0xcc
jne 0x4042da
inc dword [ebp - 0xf]
jmp 0x404309
mov ecx, dword [ebp - 0xf]
jecxz 0x404309
cmp ecx, dword [ebp + 0x14]
jb 0x404302
mov eax, edi
sub eax, ecx
push ecx
push eax
push dword [ebp + 0x18]
call fcn.004040b2
cmp eax, 1
jne 0x404319
add dword [ebp - 0xb], ecx
mov eax, dword [ebp - 0xb]
cmp eax, dword [ebp + 0x28]
jae 0x404319
mov dword [ebp - 0xf], 0
xor eax, eax
mov al, byte [ebp - 0x48]
add esi, eax
add edi, eax
add ebx, eax
cmp ebx, dword [ebp + 0x10]
jb 0x40429c
popal
mov eax, dword [ebp - 0xb]
leave
ret 0x24
Function at 0x4045d6
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
pushal
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
push 0x41523a
push 0x41512c
push dword [ebp + 8]
call fcn.0040376a
cmp eax, 0
je 0x40482e
push dword [ebp + 8]
call fcn.00404534
mov dword [ebp - 4], eax
push eax
call fcn.004045af
push 0
push 0x41512c
push 0x406285
call fcn.00402613
push 0
push 0x41523a
push 0x40627b
call fcn.00402613
lea edx, [ebp - 0x88]
push edx
push 0
push 0
push dword [ebp + 8]
call fcn.004022be
test eax, eax
je 0x40482e
mov dword [ebp - 0x8c], eax
push 0x10000
call fcn.00402105
test eax, eax
je 0x40482e
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x60]
push edx
lea edx, [ebp - 0x7c]
push edx
lea edx, [ebp - 0x80]
push edx
lea edx, [ebp - 0x84]
push edx
lea edx, [ebp - 0x6c]
push edx
lea edx, [ebp - 0x78]
push edx
push dword [ebp - 0x8c]
call fcn.004036f1
cmp dword [ebp - 0x84], 0
je 0x40482e
push dword [ebp - 4]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x10]
push edx
push 0xa6
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x6c]
push dword [ebp - 0x84]
push dword [ebp - 0x8c]
call fcn.00403e54
push dword [ebp - 0xc]
push 0x412ffe
call fcn.00404321
push dword [ebp - 0x10]
push 0x41301c
call fcn.00404321
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x84]
push dword [ebp - 0x8c]
call fcn.00404345
push eax
push 0x413030
call fcn.00404321
cmp eax, dword [ebp - 0xc]
jae 0x404733
jmp 0x40482e
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x84]
push dword [ebp - 0x8c]
call fcn.004043f3
test eax, eax
je 0x40482e
mov byte [0x432fe1], 0
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 0xa6
push 0x4134b2
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x8c]
call fcn.00403c2c
push eax
push 0x413042
call fcn.00404321
cmp eax, 0
je 0x40482e
push dword [ebp + 8]
push 0x412d50
call fcn.004020c2
push 0x41512c
push 0x412d60
call fcn.004020c2
push dword [ebp - 0x14]
call fcn.00402122
push dword [ebp - 0x18]
call fcn.00402122
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0x41512c
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_MoveFileA]
push 0
push dword [ebp + 8]
push 0x41512c
call dword [sym.imp.kernel32.dll_CopyFileA]
push 0
push 0x432fe1
push dword [ebp + 8]
push 0x41512c
call fcn.00403038
push 0
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
push dword [ebp + 8]
call fcn.004021f0
test eax, eax
je 0x40482e
push dword [ebp - 0x84]
push 0x41523a
call fcn.00404edd
mov dword [ebp - 0xa0], 1
cmp dword [ebp - 0x14], 0
je 0x40483c
push dword [ebp - 0x14]
call fcn.00402122
cmp dword [ebp - 0x18], 0
je 0x40484a
push dword [ebp - 0x18]
call fcn.00402122
popal
mov eax, dword [ebp - 0xa0]
leave
ret 4
Function at 0x404899
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
pushal
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
push 1
push 6
call dword [sym.imp.kernel32.dll_OpenFileMappingA]
test eax, eax
jne 0x4048d5
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x14
jb 0x4048ae
jmp 0x404948
mov ebx, eax
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
push 0
push 0
push 6
push ebx
call dword [sym.imp.kernel32.dll_MapViewOfFile]
test eax, eax
jne 0x404908
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x14
jb 0x4048de
jmp 0x404941
mov esi, eax
mov edi, dword [ebp + 8]
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
push dword [ebp + 0xc]
push esi
push edi
call fcn.004017ca
mov dword [esi], 0x21444e45
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
push esi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
popal
mov eax, dword [ebp - 8]
leave
ret 0xc

Function at 0x404e19
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
mov dword [ebp - 0x58], 1
mov dword [ebp - 0x14], 1
pushal
mov dword [ebp - 4], 0
lea esi, [ebp - 0x58]
lea edi, [ebp - 0x14]
push 0
push 0x44
push esi
call fcn.004017b5
push 0
push 0x10
push edi
call fcn.004017b5
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], 0
mov eax, dword [ebp + 8]
cmp dword [ebp + 0xc], 0
je 0x404eb3
push dword [ebp + 8]
lea edx, [ebp - 0x260]
push edx
call fcn.00401682
lea edx, [ebp - 0x260]
push edx
call fcn.00401802
lea ecx, [ebp - 0x260]
mov dword [eax + ecx], 0x20
push dword [ebp + 0xc]
lea edx, [ebp - 0x260]
push edx
call fcn.00401796
lea eax, [ebp - 0x260]
push edi
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
je 0x404ed5
mov dword [ebp - 4], 1
popal
mov eax, dword [ebp - 4]
leave
ret 8
Function at 0x404f25
Capabilities:
Get file attributes
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], pe_nt_image_headers32
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
inc eax
je 0x404f66
dec eax
mov dword [ebp - 0x18], eax
push pe_nt_image_headers32
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
push 0
push pe_nt_image_headers32
push 4
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
inc eax
je 0x405096
push 0
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp + 0x14]
jae 0x404faa
mov dword [ebp + 0x14], eax
mov dword [ebp - 8], 1
test eax, eax
je 0x405018
push eax
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
test eax, eax
je 0x405084
mov edi, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_ReadFile]
dec eax
jne 0x405075
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x404fc4
push 0
push 0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_SetFilePointer]
inc eax
je 0x405075
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_WriteFile]
dec eax
jne 0x405075
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x404ffc
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_WriteFile]
dec eax
jne 0x405075
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x40501e
cmp dword [ebp - 8], 1
je 0x405075
cmp dword [ebp - 0xc], 0
je 0x405084
mov edi, dword [ebp - 0xc]
add edi, dword [ebp + 0x14]
mov esi, dword [ebp - 0x10]
sub esi, dword [ebp + 0x14]
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_WriteFile]
dec eax
jne 0x405075
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x405052
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0xc], 0
je 0x405084
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_LocalFree]
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x405096
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
popal
mov eax, dword [ebp - 0x1c]
leave
ret 0x10
Function at 0x10002680
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10035ba5
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x10048140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x10], edx
mov esi, dword [ebp + 8]
test esi, esi
je 0x10002811
cmp esi, 0x15555555
ja 0x10002824
lea edi, [esi + esi*2]
shl edi, 2
mov dword [ebp - 0x14], edi
test edi, edi
je 0x1000270d
cmp edi, 0x1000
jb 0x100026ff
lea eax, [edi + 0x23]
cmp eax, edi
jbe 0x10002829
push eax
call fcn.100293e4
add esp, 4
test eax, eax
je 0x1000282e
lea edi, [eax + 0x23]
and edi, 0xffffffe0
mov dword [edi - 4], eax
jmp 0x1000270a
push edi
call fcn.100293e4
add esp, 4
mov edi, eax
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov dword [edx], edi
add ecx, edi
mov dword [edx + 4], edi
mov dword [edx + 8], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edx
mov byte [ebp - 4], 1
test esi, esi
je 0x10002800
nop dword [eax]
push 0x7c
call fcn.100293e4
mov esi, eax
add esp, 4
mov dword [ebp - 0x18], esi
test esi, esi
je 0x100027e1
lea eax, [esi + 0xc]
mov dword [esi], vtable.std::_Associated_state_int_.0
mov dword [esi + 4], 1
mov dword [esi + 8], 0
push eax
mov dword [eax], 0
mov dword [eax + 4], 0
call fcn.100288ba
xorps xmm0, xmm0
lea eax, [esi + 0x44]
movups xmmword [esi + 0x20], xmm0
push eax
movq qword [esi + 0x30], xmm0
mov dword [esi + 0x38], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x3c], 0xffffffff
mov dword [esi + 0x14], 2
mov dword [esi + 0x40], 0
call fcn.100288ba
add esp, 8
mov byte [esi + 0x6c], 0
mov dword [esi + 0x70], 0
mov word [esi + 0x74], 0
mov byte [esi + 0x76], 0
mov dword [esi + 0x78], 0
jmp 0x100027e3
xor esi, esi
mov dword [edi], esi
mov byte [edi + 4], 0
mov byte [edi + 8], 0
add edi, 0xc
sub dword [ebp + 8], 1
mov dword [ebp - 0x20], edi
jne 0x10002740
mov edx, dword [ebp - 0x10]
push edx
push edi
push edi
call fcn.100028c0
mov eax, dword [ebp - 0x10]
add esp, 0xc
mov dword [eax + 4], edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
call fcn.1001e3f0
call fcn.1001dec0
call fcn.1002cc4f
int3