joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001297
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x18]
push esi
mov esi, dword [sym.imp.WS2_32.dll_getaddrinfo]
push edi
push 8
mov byte [eax], 0
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x20], 4
call esi
test eax, eax
jne 0x100131d
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov dword [edx], ecx
mov ecx, dword [eax + 0x10]
mov esi, dword [eax + 0x18]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
cmp byte [ebp + 0x20], 0
rep movsb byte es:[edi], byte [esi]
je 0x100131a
push 4
push 0
push 0
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [eax + 0x10]
push dword [eax + 0x18]
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov eax, dword [ebp + 8]
push eax
jmp 0x1001371
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x20], 2
call esi
test eax, eax
jne 0x100137b
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov dword [ecx], eax
mov ecx, dword [edx + 0x10]
mov esi, dword [edx + 0x18]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx + 0x14]
test ecx, ecx
jne 0x1001363
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
mov al, byte [ecx]
inc ecx
mov byte [esi], al
inc esi
test al, al
jne 0x1001366
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov al, 1
jmp 0x100137d
xor al, al
pop edi
pop esi
leave
ret 0x1c

Function at 0x10013f4
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
lea ecx, [eax - 1]
mov eax, dword [ebp + 0x10]
cmp eax, ecx
mov ecx, dword [ebp + 8]
jne 0x100141d
push dword [ecx + eax*4]
push 0x2711
push 1
call fcn.01001210
add esp, 0xc
jmp 0x1001459
push esi
lea esi, [ecx + eax*4]
push 0
lea eax, [ebp + 8]
push eax
push dword [esi + 4]
call dword [sym.imp.msvcrt.dll_strtoul]
add esp, 0xc
cmp eax, dword [ebp + 0x14]
jb 0x1001442
cmp eax, dword [ebp + 0x18]
ja 0x1001442
pop esi
pop ebp
ret 0x14
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [esi]
push 0x2712
push 1
call fcn.01001210
add esp, 0x14
push 1
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x10017bf
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
cmp dword [0x10050e0], 0
mov eax, dword [0x10040c0]
mov dword [ebp - 4], eax
jbe 0x100186c
cmp dword [0x10040b8], 0xffffffff
jne 0x10017ec
and dword [0x10040b8], 0
push esi
push edi
push 2
push 0
push 0
push 0x41
lea eax, [ebp - 0x48]
push eax
push dword [0x1005348]
push 0x10052a0
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov ecx, dword [0x10050e0]
mov esi, dword [0x10050e4]
mov edi, ecx
sub edi, esi
mov eax, edi
imul eax, eax, 0x64
xor edx, edx
div ecx
push eax
push edi
push esi
push ecx
lea eax, [ebp - 0x48]
push eax
push 0x274f
push 1
call fcn.01001210
mov ecx, dword [0x10050e4]
add esp, 0x1c
test ecx, ecx
pop edi
pop esi
jbe 0x100186c
mov eax, dword [0x10050ec]
xor edx, edx
div ecx
push eax
push dword [0x10050e8]
push dword [0x10040b8]
push 0x2753
push 1
call fcn.01001210
add esp, 0x14
mov ecx, dword [ebp - 4]
call fcn.010027ae
leave
ret

Function at 0x10018bc
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push 0x1001128
push 0x80000002
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x100190b
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push 0x100111c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, dword [ebp - 8]
cmp ebx, esi
jne 0x1001914
mov bl, 0x80
cmp dword [ebp - 4], esi
je 0x1001922
push dword [ebp - 4]
call dword [entry0]
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x100192d
Capabilities:
Resolve dns

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push edi
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x20], 1
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1001968
xor eax, eax
jmp 0x1001987
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov edi, dword [ebp + 0x10]
push esi
mov esi, dword [eax + 0x18]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
inc eax
pop esi
pop edi
leave
ret 0xc
Function at 0x401490
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30c
cld
jmp 0x40149c
call fcn.00402000
call fcn.004034de
mov edi, eax
cmp dword [ebp + 8], 0
je 0x4014bb
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401020
jmp 0x401529
cmp edi, 0
je 0x40151d
push 0
push 0
push 0
call fcn.00402475
cmp eax, 1
je 0x40151d
cmp eax, 0xffffffff
je 0x40151d
push 0
push 0
push 0x406837
push 0x40682c
push 0x406826
push 0
call dword [sym.imp.shell32.dll_ShellExecuteA]
call fcn.00402f19
call fcn.00404c57
cmp eax, 1
jne 0x40151d
call fcn.0040303e
lea eax, [0x413228]
push 0
push 0x406668
call fcn.004025cb
call fcn.0040200d
jmp 0x401529
push 0
push 0x40666f
call fcn.004025cb
call fcn.0040200d
leave
ret 8

Function at 0x401859
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 0x401885
inc eax
shr ecx, 2
add ecx, eax
shl ecx, 2
call fcn.0040196b
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 0x4018a5
popal
mov eax, dword [ebp - 8]
leave
ret 8

Function at 0x402111
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov dword [ebp - 0x10c], 0
pushal
mov edi, dword [ebp + 8]
cld
rdtsc
xor eax, edx
and eax, 0xf0f0f
add eax, 0x616161
mov dword [ebp - 4], eax
push edi
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x40217e
lea edx, [ebp - 0x108]
push edx
push 0
lea edx, [ebp - 4]
push edx
push edi
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
je 0x40217e
push 0x104
lea edx, [ebp - 0x108]
push edx
push edi
call fcn.00401751
mov dword [ebp - 0x10c], 1
popal
mov eax, dword [ebp - 0x10c]
leave
ret 4

Function at 0x4021ef
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 0x40220a
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 0x402253
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 0x402253
mov dword [ebp - 8], 0
popal
mov eax, dword [ebp - 8]
leave
ret 0x10
Function at 0x4022bd
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 0x40237e
push 0
push ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
mov ecx, dword [ebp + 0x14]
jecxz 0x40231c
mov dword [ecx], eax
mov ecx, dword [ebp + 0x10]
jecxz 0x402323
mov eax, ecx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x402342
cmp dword [ebp + 0x10], 0
je 0x4023a2
push dword [ebp + 0x10]
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
test eax, eax
je 0x4023a2
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 0x402379
test eax, eax
je 0x402379
add esi, eax
dec dword [ebp - 8]
jne 0x402346
cmp dword [ebp + 0xc], 0
je 0x4023a2
push edi
call dword [sym.imp.kernel32.dll_LocalFree]
xor edi, edi
mov dword [ebp - 0x10], edi
jmp 0x4023a2
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 0x40230c
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 0x402475
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
pushal
call 0x4024ae
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 0x4024f3
push edi
imul ebp, dword [esi + 0x64], 0x5c73776f
inc ebx
jne 0x402514
jb 0x402509
outsb dx, byte [esi]
je 0x4024fd
jb 0x40251d
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 0x402585
lea edx, [ebp - 0x104]
push edx
call fcn.0040240a
cmp eax, 1
je 0x40253a
inc dword [ebp - 0x108]
jmp 0x4024ee
cmp dword [ebp + 8], 0
je 0x40257b
lea edx, [ebp - 0x104]
push edx
push esi
call fcn.004017f9
push dword [ebp + 8]
push eax
call fcn.00401609
cmp dword [ebp + 0xc], 0
je 0x40257b
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 0x402585
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 0x4024ae
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
pushal
call 0x4024ae
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 0x4024f3
push edi
imul ebp, dword [esi + 0x64], 0x5c73776f
inc ebx
jne 0x402514
jb 0x402509
outsb dx, byte [esi]
je 0x4024fd
jb 0x40251d
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 0x402585
lea edx, [ebp - 0x104]
push edx
call fcn.0040240a
cmp eax, 1
je 0x40253a
inc dword [ebp - 0x108]
jmp 0x4024ee
cmp dword [ebp + 8], 0
je 0x40257b
lea edx, [ebp - 0x104]
push edx
push esi
call fcn.004017f9
push dword [ebp + 8]
push eax
call fcn.00401609
cmp dword [ebp + 0xc], 0
je 0x40257b
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 0x402585
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 0x402f19
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
pushal
lea edx, [ebp - 0x30c]
push edx
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
push 0x40601c
lea edx, [ebp - 0x30c]
push edx
call fcn.0040171d
lea edx, [ebp - 0x208]
push edx
call fcn.00402111
push 0x406214
lea edx, [ebp - 0x208]
push edx
call fcn.0040171d
push 0
push 0x1db
push 0x406039
lea edx, [ebp - 0x30c]
push edx
call fcn.004021ef
push 0
push 0x278
push 0x40622d
lea edx, [ebp - 0x208]
push edx
call fcn.004021ef
push 0x406219
lea edx, [ebp - 0x208]
push edx
call fcn.0040171d
cmp eax, 0
je 0x402feb
push 0
push 0
lea edx, [ebp - 0x208]
push edx
push 0x406010
push 0x406826
push 0
call dword [sym.imp.shell32.dll_ShellExecuteA]
push 0x1f4
call dword [sym.imp.kernel32.dll_Sleep]
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.kernel32.dll_DeleteFileA]
lea edx, [ebp - 0x30c]
push edx
call dword [sym.imp.kernel32.dll_DeleteFileA]
popal
leave
ret
Function at 0x40303e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
pushal
mov edi, 0x415108
push 0
push 0xa
push edi
call fcn.00401906
push edi
call fcn.00401789
add edi, eax
lea edx, [eax + 1]
inc edi
push edi
mov esi, 0x40a4b3
mov ecx, 0x14
rep movsb byte es:[edi], byte [esi]
mov esi, 0x40a44f
mov ecx, 0x64
rep movsb byte es:[edi], byte [esi]
mov esi, 0x40a4c7
mov ecx, 0x4388
rep movsb byte es:[edi], byte [esi]
pop edi
lea eax, [edx + 0x4400]
push eax
push 0x415108
call fcn.00401859
mov edi, eax
push section..bss
call fcn.00402fee
push 0
push section..bss
push 0x40eb02
call fcn.00402612
push 1
push 0
push 0
push 0
call fcn.0040310c
push section..bss
push 0x40e8e5
call fcn.004017f9
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 0x403109
push edi
push 0x415108
push 3
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegSetValueExA]
popal
leave
ret

Function at 0x4034de
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, 0x40ed0b
cld
mov eax, 0x402ce0
stosd dword es:[edi], eax
mov eax, 0x402b47
stosd dword es:[edi], eax
mov eax, 0x402c2a
stosd dword es:[edi], eax
mov eax, 0x402c88
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.004033c1
cmp eax, 1
je 0x403597
push 0x3e8
push 0x42dbd0
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryA]
mov al, byte [0x42dbd0]
mov byte [0x42dcd4], al
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.kernel32.dll_GetNativeSystemInfo]
push dword [ebp - 0x24]
pop dword [0x42d938]
push 0x42d93c
push 0x40eb8c
call fcn.0040225b
mov dword [0x42d954], eax
test eax, eax
jne 0x40357c
push 0x42d93c
push 0x40ebd0
call fcn.0040225b
test eax, eax
je 0x403597
mov dword [0x42d954], eax
push 0x42d95c
push 0x40ec11
call fcn.0040225b
mov dword [0x42d958], eax
test eax, eax
je 0x403597
mov dword [ebp - 0x28], eax
popal
mov eax, dword [ebp - 0x28]
leave
ret

Function at 0x4041f9
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.0040561a
mov esi, eax
mov edi, dword [ebp + 0xc]
push 0
push 0x2c
lea edx, [ebp - 0x38]
push edx
call fcn.0040173c
mov ecx, esi
lea edx, [ebp - 0x38]
call fcn.0040267e
test eax, eax
je 0x40428e
cmp byte [ebp - 0x25], 0xcc
jne 0x40424f
inc dword [ebp - 0xc]
jmp 0x40427e
mov ecx, dword [ebp - 0xc]
jecxz 0x40427e
cmp ecx, dword [ebp + 0x14]
jb 0x404277
mov eax, edi
sub eax, ecx
push ecx
push eax
push dword [ebp + 0x18]
call fcn.00404186
cmp eax, 1
jne 0x40428e
add dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x28]
jae 0x40428e
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 0x404236
popal
mov eax, dword [ebp - 8]
leave
ret 0x24
Function at 0x404296
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.0040561a
mov esi, eax
mov edi, dword [ebp + 0xc]
push 0
push 0x39
lea edx, [ebp - 0x48]
push edx
call fcn.0040173c
mov ecx, esi
lea edx, [ebp - 0x48]
call fcn.004019a0
test eax, eax
je 0x40432b
cmp byte [ebp - 0x30], 0xcc
jne 0x4042ec
inc dword [ebp - 0xf]
jmp 0x40431b
mov ecx, dword [ebp - 0xf]
jecxz 0x40431b
cmp ecx, dword [ebp + 0x14]
jb 0x404314
mov eax, edi
sub eax, ecx
push ecx
push eax
push dword [ebp + 0x18]
call fcn.00404186
cmp eax, 1
jne 0x40432b
add dword [ebp - 0xb], ecx
mov eax, dword [ebp - 0xb]
cmp eax, dword [ebp + 0x28]
jae 0x40432b
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 0x4042d3
popal
mov eax, dword [ebp - 0xb]
leave
ret 0x24

Function at 0x404333
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.0040561a
mov esi, eax
mov edi, dword [ebp + 0xc]
push 0
push 0x39
lea edx, [ebp - 0x48]
push edx
call fcn.0040173c
mov ecx, esi
lea edx, [ebp - 0x48]
call fcn.004019a0
test eax, eax
jne 0x4043a3
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.00405556
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp + 0x10]
cmp ecx, eax
jbe 0x4043ed
sub eax, edx
jmp 0x4043e2
cmp byte [ebp - 0x30], 0xcc
jne 0x4043ae
inc dword [ebp - 0xf]
jmp 0x4043dd
mov ecx, dword [ebp - 0xf]
jecxz 0x4043dd
cmp ecx, dword [ebp + 0x14]
jb 0x4043d6
mov eax, edi
sub eax, ecx
push ecx
push eax
push dword [ebp + 0x18]
call fcn.00404186
cmp eax, 1
jne 0x4043ed
add dword [ebp - 0xb], ecx
mov eax, dword [ebp - 0xb]
cmp eax, dword [ebp + 0x28]
jae 0x4043ed
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 0x404370
popal
mov eax, dword [ebp - 0xb]
leave
ret 0x24
Function at 0x4046aa
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 0x41123a
push 0x41112c
push dword [ebp + 8]
call fcn.0040383e
cmp eax, 0
je 0x404902
push dword [ebp + 8]
call fcn.00404608
mov dword [ebp - 4], eax
push eax
call fcn.00404683
push 0
push 0x41112c
push 0x40671a
call fcn.00402612
push 0
push 0x41123a
push 0x406710
call fcn.00402612
lea edx, [ebp - 0x88]
push edx
push 0
push 0
push dword [ebp + 8]
call fcn.004022bd
test eax, eax
je 0x404902
mov dword [ebp - 0x8c], eax
push 0x10000
call fcn.0040208c
test eax, eax
je 0x404902
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.004037c5
cmp dword [ebp - 0x84], 0
je 0x404902
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.00403f28
push dword [ebp - 0xc]
push 0x40eb0b
call fcn.004043f5
push dword [ebp - 0x10]
push 0x40eb29
call fcn.004043f5
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.00404419
push eax
push 0x40eb3d
call fcn.004043f5
cmp eax, dword [ebp - 0xc]
jae 0x404807
jmp 0x404902
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x84]
push dword [ebp - 0x8c]
call fcn.004044c7
test eax, eax
je 0x404902
mov byte [0x42efe1], 0
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 0xa6
push 0x40efbf
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x8c]
call fcn.00403d00
push eax
push 0x40eb4f
call fcn.004043f5
cmp eax, 0
je 0x404902
push dword [ebp + 8]
push 0x40e85d
call fcn.00402049
push 0x41112c
push 0x40e86d
call fcn.00402049
push dword [ebp - 0x14]
call fcn.004020a9
push dword [ebp - 0x18]
call fcn.004020a9
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0x41112c
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_MoveFileA]
push 0
push dword [ebp + 8]
push 0x41112c
call dword [sym.imp.kernel32.dll_CopyFileA]
push 0
push 0x42efe1
push dword [ebp + 8]
push 0x41112c
call fcn.0040310c
push 0
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
push dword [ebp + 8]
call fcn.004021ef
test eax, eax
je 0x404902
push dword [ebp - 0x84]
push 0x41123a
call fcn.00404fb1
mov dword [ebp - 0xa0], 1
cmp dword [ebp - 0x14], 0
je 0x404910
push dword [ebp - 0x14]
call fcn.004020a9
cmp dword [ebp - 0x18], 0
je 0x40491e
push dword [ebp - 0x18]
call fcn.004020a9
popal
mov eax, dword [ebp - 0xa0]
leave
ret 4
Function at 0x40496d
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 0x4049a9
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x14
jb 0x404982
jmp 0x404a1c
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 0x4049dc
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x14
jb 0x4049b2
jmp 0x404a15
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.00401751
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 0x404eed
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.0040173c
push 0
push 0x10
push edi
call fcn.0040173c
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 0x404f87
push dword [ebp + 8]
lea edx, [ebp - 0x260]
push edx
call fcn.00401609
lea edx, [ebp - 0x260]
push edx
call fcn.00401789
lea ecx, [ebp - 0x260]
mov dword [eax + ecx], 0x20
push dword [ebp + 0xc]
lea edx, [ebp - 0x260]
push edx
call fcn.0040171d
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 0x404fa9
mov dword [ebp - 4], 1
popal
mov eax, dword [ebp - 4]
leave
ret 8