joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407440
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x10c
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x4074c9
lea eax, [esp + 4]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x4074c9
cmp byte [esp + 4], 0x5c
je 0x407477
cmp byte [esp + 4], 0x2f
jne 0x40748a
mov al, byte [esp + 5]
cmp byte [esp + 4], al
jne 0x40748a
xor eax, eax
add esp, 0x10c
ret
mov byte [esp], 0x3d
xor eax, eax
mov al, byte [esp + 4]
push eax
call fcn.004087f0
lea ecx, [esp + 8]
mov byte [esp + 5], al
mov byte [esp + 6], 0x3a
mov byte [esp + 7], 0
lea edx, [esp + 4]
add esp, 4
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
je 0x4074c9
xor eax, eax
add esp, 0x10c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00408780
add esp, 4
mov eax, 0xffffffff
add esp, 0x10c
ret

Function at 0x4074f0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
mov eax, 0
jne 0x40750c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40751f
push eax
call fcn.00408780
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x407550
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov ebx, dword [esp + 0x118]
push edi
test ebx, ebx
je 0x4075c3
push ebx
call fcn.00407680
add esp, 4
test eax, eax
jne 0x407591
xor eax, eax
pop edi
mov dword [0x410ddc], 0xf
mov dword [0x410dd8], 0xd
pop esi
pop ebx
add esp, 0x10c
ret
add bl, 0x40
lea eax, [esp + 0x10]
mov byte [esp + 0xc], bl
push eax
lea ecx, [esp + 0x18]
lea ebx, [esp + 0x10]
mov byte [esp + 0x11], 0x3a
mov byte [esp + 0x12], 0x2e
mov byte [esp + 0x13], 0
push ecx
push 0x104
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x4075d3
lea eax, [esp + 0x14]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x407672
inc eax
cmp eax, 0x104
ja 0x407672
mov edx, dword [esp + 0x120]
test edx, edx
jne 0x407624
mov ecx, dword [esp + 0x124]
cmp eax, ecx
jg 0x4075ff
mov eax, ecx
push eax
call fcn.004089c0
add esp, 4
mov edx, eax
test edx, edx
jne 0x407643
xor eax, eax
pop edi
mov dword [0x410dd8], 0xc
pop esi
pop ebx
add esp, 0x10c
ret
cmp eax, dword [esp + 0x124]
jle 0x407643
xor eax, eax
pop edi
mov dword [0x410dd8], 0x22
pop esi
pop ebx
add esp, 0x10c
ret
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, edx
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x10c
ret
Function at 0x407680
Capabilities:
Get disk information

Disassembly:
mov eax, dword [esp + 4]
sub esp, 4
test eax, eax
jne 0x407694
mov eax, 1
add esp, 4
ret
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0x5c
mov byte [esp + 3], 0
add al, 0x40
mov byte [esp], al
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x4076c6
cmp eax, 1
je 0x4076c6
mov eax, 1
add esp, 4
ret
xor eax, eax
add esp, 4
ret

Function at 0x4076d0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x407706
cmp byte [esp + 5], 0x3a
jne 0x407706
xor eax, eax
mov al, byte [esp + 4]
push eax
call fcn.00408a40
add esp, 4
lea esi, [eax - 0x40]
mov eax, esi
pop esi
add esp, 0x104
ret

Function at 0x407710
Capabilities:
Set current directory

Disassembly:
mov eax, dword [esp + 4]
sub esp, 4
cmp eax, 1
jl 0x40775e
cmp eax, 0x1f
jg 0x40775e
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
add al, 0x40
mov byte [esp], al
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x407746
xor eax, eax
add esp, 4
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00408780
add esp, 4
mov eax, 0xffffffff
add esp, 4
ret
mov eax, 0xffffffff
add esp, 4
mov dword [0x410dd8], 0xd
mov dword [0x410ddc], 0xf
ret

Function at 0x407990
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
mov eax, 0
jne 0x4079aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4079bd
push eax
call fcn.00408780
add esp, 4
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x407cc0
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e090
push 0x409880
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x410de4], eax
xor eax, eax
mov al, byte [0x410de5]
mov dword [0x410df0], eax
mov eax, dword [0x410de4]
shr dword [0x410de4], 0x10
and eax, 0xff
mov dword [0x410dec], eax
shl eax, 8
add eax, dword [0x410df0]
mov dword [0x410de8], eax
call fcn.00409860
mov dword [ebp - 4], 0
call fcn.00409680
call fcn.00409670
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x413800], eax
call fcn.00409210
mov dword [0x410b70], eax
test eax, eax
je 0x407d59
cmp dword [0x413800], 0
jne 0x407d63
push 0xffffffffffffffff
call fcn.004088b0
add esp, 4
call fcn.00408f90
call fcn.00408eb0
call fcn.00408880
mov esi, dword [0x413800]
mov al, byte [esi]
cmp al, 0x22
je 0x407d8a
cmp al, 0x20
jbe 0x407db7
inc esi
cmp byte [esi], 0x20
ja 0x407d82
jmp 0x407db7
inc esi
cmp byte [esi], 0x22
je 0x407db6
mov bl, byte [ebp - 0x28]
mov bl, byte [esi]
test bl, bl
je 0x407db1
xor eax, eax
mov al, bl
push eax
call fcn.00408e50
add esp, 4
test eax, eax
je 0x407dab
inc esi
inc esi
cmp byte [esi], 0x22
jne 0x407d93
cmp byte [esi], 0x22
jne 0x407db7
inc esi
cmp byte [esi], 0
je 0x407dc7
cmp byte [esi], 0x20
ja 0x407dc7
inc esi
cmp byte [esi], 0
jne 0x407dbc
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x44], 1
mov eax, 0xa
je 0x407deb
mov eax, dword [ebp - 0x40]
and eax, 0xffff
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call fcn.004088b0
jmp 0x407e2c
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4088f0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x410e20], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x40890e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x410e1c], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x410e18], bl
jne 0x408968
cmp dword [0x4137f8], 0
je 0x408956
mov edi, dword [0x4137f4]
sub edi, 4
cmp dword [0x4137f8], edi
ja 0x408956
mov eax, dword [edi]
test eax, eax
je 0x40894b
call eax
sub edi, 4
cmp dword [0x4137f8], edi
jbe 0x408943
push 0x40f014
push 0x40f010
call fcn.004089a0
add esp, 8
push 0x40f01c
push 0x40f018
call fcn.004089a0
add esp, 8
test ebx, ebx
jne 0x40898f
mov dword [0x410e20], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x409210
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
cmp dword [0x4110e0], 0
push ebx
push esi
push edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push ebp
jne 0x40925c
call esi
mov edi, eax
test edi, edi
je 0x40923a
mov dword [0x4110e0], 1
jmp 0x409260
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x409252
mov dword [0x4110e0], 2
jmp 0x409264
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x10]
cmp dword [0x4110e0], 1
jne 0x409313
test edi, edi
jne 0x409287
call esi
mov edi, eax
test edi, edi
jne 0x409287
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x4092a1
add esi, 2
cmp word [esi], 0
jne 0x40928f
add esi, 2
cmp word [esi], 0
jne 0x40928f
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x409302
push ebp
call fcn.004089c0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x409302
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4092f1
push ebx
call fcn.00409c90
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x4110e0], 2
jne 0x409397
test ebx, ebx
jne 0x409336
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x409336
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x40934b
inc ebp
cmp byte [ebp], 0
jne 0x40933d
inc ebp
cmp byte [ebp], 0
jne 0x40933d
sub ebp, ebx
inc ebp
push ebp
call fcn.004089c0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x409370
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x4099a0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x411310
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x4099c7
add eax, 8
inc ecx
cmp eax, 0x411398
jb 0x4099b8
cmp dword [ecx*8 + 0x411310], edx
lea ebx, [ecx*8]
jne 0x409b82
cmp dword [0x410b7c], 1
je 0x409b47
cmp dword [0x410b7c], 0
jne 0x4099fe
cmp dword [0x410b80], 1
je 0x409b47
cmp edx, 0xfc
je 0x409b82
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x409a3b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x409a7f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x40e38c
push ebp
call fcn.00409b90
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40e36c
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x411314]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.0040a3d0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4136f0]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x409b5e
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x411314]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x40afc2
Capabilities:
Write file on windows

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
sub esp, 4
push esi
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x40afd4
mov dword [esi], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40aff1
xor eax, eax
jmp 0x40b007
test esi, esi
je 0x40affa
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp + 0x10]
cmp eax, 1
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b82d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push 0
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
mov eax, 0
je 0x40b865
sub esi, dword [ebp - 4]
cmp esi, 1
sbb eax, eax
neg eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40ba40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0xc
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
xor edi, edi
push esi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add eax, eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x40baae
mov ecx, ebx
mov al, byte [esi]
mov byte [ecx], al
cmp byte [esi], 0xa
jne 0x40ba8b
cmp byte [esi + 1], 0xd
je 0x40ba8b
mov byte [ecx], 0xd
inc ecx
mov byte [ecx], 0xa
inc esi
inc ecx
cmp byte [esi], 0
jne 0x40ba75
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + ebx - 1], 0xa
je 0x40baac
push 0x41059c
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov esi, ebx
push 0
lea eax, [ebp - 0xc]
push pe_nt_image_headers32
push 4
push eax
push 0
push 0x40000000
push 0x40f020
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov edi, eax
je 0x40bafc
push 2
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x40bafc
push 0
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp edi, 0xffffffff
je 0x40bb0f
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40cfa4
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.0040d3ba
add esp, 4
test eax, eax
jne 0x40cfc5
xor eax, eax
jmp 0x40d025
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, eax
cmp esi, 0x104
jle 0x40cfeb
xor eax, eax
jmp 0x40d025
push dword [ebp + 8]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40d016
test al, 0x10
mov eax, 1
jne 0x40d025
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d2d0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.0040d3ba
add esp, 4
test eax, eax
jne 0x40d2f5
xor eax, eax
jmp 0x40d3b4
mov esi, dword [ebp + 8]
test esi, esi
je 0x40d344
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add edi, eax
inc edi
cmp edi, 0x104
jle 0x40d324
xor eax, eax
jmp 0x40d3b4
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x410658
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
add esi, eax
add esi, 4
cmp esi, 0x104
jle 0x40d36d
xor eax, eax
jmp 0x40d3b4
push dword [ebp + 0xc]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push str..LNK
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x108]
push ecx
call fcn.0040b922
add esp, 4
test eax, eax
mov eax, 1
je 0x40d3b4
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40d3ba
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
call fcn.0040b61d
push eax
lea ecx, [ebp - 0x6c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x410658
lea ecx, [ebp - 0x6c]
push ecx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
call esi
push str.ExplorerShell_Folders
lea ecx, [ebp - 0x6c]
push ecx
call esi
lea eax, [ebp - 4]
lea ecx, [ebp - 0x6c]
push eax
push 0x20019
push 0
push ecx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40d411
xor eax, eax
jmp 0x40d472
lea eax, [ebp - 8]
mov edi, dword [ebp + 8]
mov dword [ebp - 8], 0x104
push eax
push edi
push 0
push 0
push str.Programs
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x40d445
xor eax, eax
jmp 0x40d472
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [edi + eax - 2], 0x5c
je 0x40d46d
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 0x103
jl 0x40d465
xor eax, eax
jmp 0x40d472
push 0x410658
push edi
call esi
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d6b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40d6d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00408780
add esp, 4
mov eax, 0xffffffff
ret
test al, 1
je 0x40d6fa
test byte [esp + 8], 2
je 0x40d6fa
mov dword [0x410dd8], 0xd
mov dword [0x410ddc], 5
mov eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x1411373e
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x6505a86
nop
nop
nop
test eax, eax
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x401088
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push 0x47fb8c
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x4010a9
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4010a5
xor eax, eax
ret

Function at 0x4010b7
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push str.GlobalAcro_Update_Mutex
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
test eax, eax
je 0x4010d8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4010d4
xor eax, eax
ret

Function at 0x401128
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
push 4
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401173
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x40115b
push 0xd
pop esi
cmp esi, 0xe8
jne 0x401180
push 0xa
inc edi
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp edi, 0xa
jl 0x401130
jmp 0x401180
mov esi, dword [ebp - 4]
sub esi, 4
neg esi
sbb esi, esi
and esi, 0xd
pop edi
mov eax, esi
pop esi
leave
ret

Function at 0x401186
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x190000
push 3
pop esi
push esi
push ebx
push ebx
push 0xc0000000
push dword [ebp + 8]
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x4011cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
jne 0x401261
push 0xd
pop edi
jmp 0x401261
push ebx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x4011f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, ebx
jne 0x401258
push 0xd
pop edi
jmp 0x401258
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp + 0xc]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
call esi
test eax, eax
je 0x4011e1
cmp dword [ebp + 0x10], ebx
je 0x401258
xor eax, eax
mov byte [ebp - 8], bl
lea edi, [ebp - 7]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00401128
mov edi, eax
pop ecx
pop ecx
cmp edi, ebx
jne 0x401258
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
inc ecx
sub eax, ecx
neg eax
sbb eax, eax
and eax, 0xd
push ebx
mov edi, eax
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret