joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002a8d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp + 0x14]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp + 0x14], esi
push dword [ebp + 8]
call dword [sym.imp.API_MS_Win_Core_LocalRegistry_L1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x1002ae8
mov eax, dword [ebp + 0x14]
cmp eax, 2
jb 0x1002ae3
shr eax, 1
xor ecx, ecx
cmp cx, word [edi + eax*2 - 2]
jne 0x1002ae3
mov eax, dword [ebp + 0x10]
dec eax
je 0x1002adf
dec eax
jne 0x1002ae3
push esi
push edi
call fcn.01002996
test eax, eax
jne 0x1002ae8
xor eax, eax
jmp 0x1002ae8
mov eax, 0x3f7
pop edi
pop esi
pop ebp
ret 0x10

Function at 0x1002d87
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1003220
call fcn.01002f44
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10043c8
push ebx
push esi
push edi
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x1002b9c
cmp eax, esi
jne 0x1002b8f
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x1002b9f
push 0x3e8
call dword [sym.imp.API_MS_Win_Core_Misc_L1_1_0.dll_Sleep]
jmp 0x1002b76
xor esi, esi
inc esi
mov eax, dword [0x10043c4]
cmp eax, esi
jne 0x1002bb2
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002bed
mov eax, dword [0x10043c4]
test eax, eax
jne 0x1002be7
mov dword [0x10043c4], esi
push 0x1001188
push 0x100117c
call fcn.01002af3
pop ecx
pop ecx
test eax, eax
je 0x1002bed
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x1002cb7
mov dword [0x1004078], esi
mov eax, dword [0x10043c4]
cmp eax, esi
jne 0x1002c11
push 0x1001178
push 0x1001170
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10043c4], 2
cmp dword [ebp - 0x1c], ebx
jne 0x1002c1e
push ebx
push edi
call dword [sym.imp.API_MS_Win_Core_Interlocked_L1_1_0.dll_InterlockedExchange]
cmp dword [0x10043cc], ebx
je 0x1002c3f
push 0x10043cc
call fcn.01002eb9
pop ecx
test eax, eax
je 0x1002c3f
push ebx
push 2
push ebx
call dword [0x10043cc]
push dword [0x1004060]
push dword [0x1004064]
push dword [0x100405c]
call fcn.010018dc
add esp, 0xc
mov dword [0x1004074], eax
cmp dword [0x1004068], ebx
jne 0x1002c9d
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x1004078], ebx
jne 0x1002cab
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004074]
call fcn.01002f89
ret
call 0x1174000
jmp 0x1002b54
Function at 0x401398
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
push esi
mov esi, ecx
cmp dword [0x40b0a4], edx
jne 0x4013da
push ebx
push edi
push 8
mov ecx, edx
pop edi
mov ebx, ecx
and bl, 1
movzx ebx, bl
neg ebx
sbb ebx, ebx
and ebx, 0xedb88320
shr ecx, 1
xor ecx, ebx
dec edi
jne 0x4013af
mov dword [edx*4 + 0x40b0a0], ecx
inc edx
cmp edx, 0x100
jl 0x4013aa
pop edi
pop ebx
not esi
jmp 0x4013f7
movzx ecx, byte [eax]
dec dword [ebp + 8]
xor ecx, esi
and ecx, 0xff
shr esi, 8
xor esi, dword [ecx*4 + 0x40b0a0]
inc eax
cmp dword [ebp + 8], 0
ja 0x4013de
mov eax, esi
not eax
pop esi
pop ebp
ret 4

Function at 0x401517
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x792d10]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4015ad
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x401569
cmp dword [ebp + 0x10], ebx
jne 0x4015a1
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401517
test eax, eax
jne 0x40157b
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x401550
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
pop eax
call fcn.00406f49
cmp eax, ebx
je 0x4015b4
push ebx
push dword [0x792d10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x4015ad
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x792d10], ebx
jne 0x4015aa
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4015aa
jmp 0x4015ad
Function at 0x403ae0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [0x40d0f0], ebx
jne 0x403b1f
mov esi, dword [ebp + 0xc]
push ebx
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [0x40b08c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403b18
cmp dword [ebp - 8], esi
je 0x403c4f
xor eax, eax
jmp 0x403c52
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
jbe 0x403c4f
mov edi, 0x792880
mov esi, dword [0x40d0ec]
push dword [esi + 0x10]
mov eax, dword [esi + 0x18]
push dword [esi + 0xc]
dec eax
cdq
push edx
push eax
call fcn.00407b60
mov ecx, dword [0x40d0f8]
sub ecx, eax
mov eax, dword [0x40d0fc]
sbb eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x20]
mov dword [ebp - 0x10], ecx
mov ecx, dword [esi + 0x1c]
cmp dword [ebp - 0xc], eax
jg 0x403bc9
jl 0x403b6f
cmp dword [ebp - 0x10], ecx
jae 0x403bc9
mov esi, dword [ebp + 0xc]
xor ebx, ebx
sub esi, dword [ebp - 4]
push ebx
pop edx
sbb edx, ebx
sub ecx, dword [ebp - 0x10]
sbb eax, dword [ebp - 0xc]
cmp eax, edx
jg 0x403b8d
jl 0x403b8b
cmp ecx, esi
jae 0x403b8d
mov esi, ecx
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 8]
push dword [0x40b08c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403b18
cmp dword [ebp - 8], esi
jne 0x403b18
add dword [ebp - 4], esi
add dword [0x40d0f8], esi
adc dword [0x40d0fc], ebx
add dword [ebp + 8], esi
jmp 0x403c43
mov eax, dword [esi]
push dword [0x40b08c]
mov dword [0x40d0ec], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x79ac00
push edi
call fcn.00406a3a
push 0x5c
push edi
call fcn.00407b30
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
jne 0x403bf9
mov esi, edi
lea eax, [esi + 1]
jmp 0x403c01
mov esi, eax
inc eax
push 0x2e
push eax
call fcn.00407a70
pop ecx
pop ecx
cmp eax, ebx
jne 0x403bfe
mov eax, dword [0x40d0ec]
push dword [eax + 0x18]
push str.._u.dat
push esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 3
push 0x80000000
push edi
call fcn.00406702
push ebx
push ebx
push 0x24
push eax
mov dword [0x40b08c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jb 0x403b30
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4061ee
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 0x78f5d0
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
mov dword [0x78f5d0], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406229
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x4062b2
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
call fcn.004066da
mov edi, eax
cmp edi, 0xffffffff
je 0x4062ef
test byte [ebp + 8], 1
push esi
je 0x4062d9
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x4062e1
xor eax, eax
inc eax
jmp 0x4062f1
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x4062d0
test byte [ebp + 8], 4
jne 0x4062ef
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop ebp
ret 4
Function at 0x4062f6
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, ebx
and eax, 4
push esi
mov dword [ebp - 4], eax
call fcn.004065e1
mov dword [ebp - 0xc], eax
test bl, 8
je 0x406335
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x792ce8], eax
jmp 0x40650c
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x40634f
test eax, eax
je 0x40648f
test bl, 2
je 0x40648f
push esi
mov edi, 0x790358
push edi
call fcn.00406a3a
cmp dword [ebp + 8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x406371
push 0x409cf8
push edi
call ebx
jmp 0x406376
call fcn.00406553
cmp byte [esi], 0
jne 0x406384
cmp byte [0x790358], 0x5c
jne 0x40638c
push 0x409704
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ebx, [esi + eax]
lea eax, [ebp - 0x150]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x406485
lea edi, [ebp - 0x124]
push 0x3f
mov eax, edi
call fcn.00406538
cmp byte [eax], 0
je 0x4063cd
cmp byte [ebp - 0x20], 0
je 0x4063cd
lea edi, [ebp - 0x20]
cmp byte [edi], 0x2e
jne 0x4063e7
mov al, byte [edi + 1]
test al, al
je 0x406464
cmp al, 0x2e
jne 0x4063e7
cmp byte [edi + 2], 0
je 0x406464
push edi
push ebx
call fcn.00406a3a
test byte [ebp - 0x150], 0x10
je 0x40640c
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406464
push dword [ebp + 0xc]
push esi
call fcn.004062f6
jmp 0x406464
push esi
push str.Delete:_DeleteFile___s__
call fcn.00406eed
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.004062b2
push esi
test eax, eax
jne 0x40645d
cmp dword [ebp - 4], eax
je 0x406449
push str.Delete:_DeleteFile_on_Reboot___s__
call fcn.00406eed
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405cda
push 0
push esi
call fcn.004068f9
jmp 0x406464
push str.Delete:_DeleteFile_failed___s__
call fcn.00406eed
inc dword [0x792ce8]
pop ecx
pop ecx
jmp 0x406464
push 0xfffffffffffffff2
call fcn.00405cda
lea eax, [ebp - 0x150]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4063b0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40648f
mov byte [ebx - 1], 0
xor edi, edi
cmp dword [ebp + 8], edi
je 0x40650c
push esi
cmp dword [ebp - 0xc], edi
jne 0x4064a3
push str.RMDir:_RemoveDirectory_invalid_input___s__
jmp 0x4064f6
call fcn.00406f1f
test eax, eax
je 0x40650c
call fcn.00406513
push esi
push str.RMDir:_RemoveDirectory___s__
call fcn.00406eed
mov eax, dword [ebp - 4]
pop ecx
pop ecx
or eax, 1
push eax
call fcn.004062b2
push esi
test eax, eax
jne 0x406505
cmp dword [ebp - 4], edi
je 0x4064f1
push str.RMDir:_RemoveDirectory_on_Reboot___s__
call fcn.00406eed
pop ecx
pop ecx
push esi
push 0xfffffffffffffff1
call fcn.00405cda
push edi
push esi
call fcn.004068f9
jmp 0x40650c
push str.RMDir:_RemoveDirectory_failed___s__
call fcn.00406eed
inc dword [0x792ce8]
pop ecx
pop ecx
jmp 0x40650c
push 0xffffffffffffffe5
call fcn.00405cda
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4065e1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 8]
mov esi, 0x78f618
push esi
call fcn.00406a3a
mov edi, esi
call fcn.00406595
mov edi, eax
test edi, edi
jne 0x406605
xor eax, eax
jmp 0x40665d
push edi
call fcn.00406cd9
test byte [0x792c80], 0x80
je 0x40661e
mov al, byte [edi]
test al, al
je 0x406601
cmp al, 0x5c
je 0x406601
push ebx
mov ebx, edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub ebx, esi
jmp 0x40663f
push esi
call fcn.00406f1f
test eax, eax
je 0x40663a
test byte [eax], 0x10
je 0x406663
call fcn.00406553
push esi
call edi
cmp eax, ebx
jg 0x40662b
call fcn.00406513
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
pop ebp
ret 4
xor eax, eax
jmp 0x40665c

Function at 0x4066da
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4066fb
and eax, 0xfffffffe
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
pop ebp
ret 4

Function at 0x406702
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [eax + 1]
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [ebp + 0x10]
push 0
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
pop ebp
ret 0xc

Function at 0x406731
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x64
pop esi
dec esi
mov dword [ebp - 4], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
pop ecx
xor edx, edx
div ecx
push edi
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
add byte [ebp - 2], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x406771
test esi, esi
jne 0x406739
mov byte [edi], 0
pop esi
leave
ret 4
mov eax, edi
jmp 0x40676c
Function at 0x406775
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push 0x409e04
mov edi, 0x78fa18
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp + 0xc], 0
mov ebx, 0x400
je 0x4067c6
push 1
push 0
push dword [ebp + 0xc]
call fcn.00406702
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x4068c3
cmp eax, ebx
jg 0x4068c3
push esi
push ebx
mov esi, 0x790758
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x4068c2
cmp eax, ebx
jg 0x4068c2
push esi
push edi
push str._s_s_r_n
push 0x78ff58
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x79280c]
push dword [eax + 0x128]
push esi
call fcn.00406a52
push 4
push 0xc0000000
push esi
call fcn.00406702
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
je 0x4068c2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4068b9
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4068b9
cmp esi, dword [ebp - 4]
jne 0x4068b9
push str._Rename__r_n
mov eax, edi
call fcn.00406667
test eax, eax
jne 0x4068c7
push str._Rename__r_n
lea eax, [edi + esi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esi, 0xa
mov eax, esi
push ebx
add eax, edi
mov ecx, 0x78ff58
call fcn.004066bc
xor eax, eax
push eax
push eax
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
add esi, ebx
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
pop ebx
leave
ret
push 0x409e10
add eax, 0xa
call fcn.00406667
mov dword [ebp - 8], eax
test eax, eax
je 0x406882
lea ecx, [edi + esi]
lea edx, [ecx + ebx]
cmp ecx, eax
jbe 0x4068f4
sub edx, ecx
mov al, byte [ecx]
mov byte [edx + ecx], al
mov eax, dword [ebp - 8]
dec ecx
cmp ecx, eax
ja 0x4068e7
sub eax, edi
inc eax
jmp 0x406884

Function at 0x40692d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
neg eax
sbb eax, eax
lea ecx, [ebp + 8]
push ecx
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x406998
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 4], 0x400
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406987
cmp dword [ebp + 0xc], 1
je 0x406989
cmp dword [ebp + 0xc], 2
je 0x406989
mov byte [esi], bl
push dword [ebp + 8]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
leave
ret 0xc
Function at 0x406d7c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x406da1
mov eax, dword [0x40b028]
cmp eax, 0xffffffff
je 0x406d98
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40b028], 0xffffffff
jmp 0x406e16
cmp dword [0x790ba8], ebx
je 0x406e16
cmp byte [0x791bc0], bl
je 0x406de0
cmp dword [0x40b028], 0xffffffff
jne 0x406de9
push 4
push 0x40000000
push 0x791bc0
call fcn.00406702
mov dword [0x40b028], eax
cmp eax, 0xffffffff
je 0x406e16
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40b028], 0xffffffff
je 0x406e16
push esi
push 0x409e7c
mov esi, 0x790bc0
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
lea ecx, [ebp + 8]
push ecx
push eax
push esi
push dword [0x40b028]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4
Function at 0x403bc0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0041d257

Function at 0x4069df
Capabilities:
Query environment variable

Disassembly:
push 0x210
mov eax, 0x57ce2c
call fcn.00552eab
mov ebx, ecx
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, eax
test edi, edi
je 0x406ab5
cmp word [edi], ax
je 0x406ab5
mov esi, 0x104
lea eax, [ebp - 0x218]
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x406a31
push edi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0055a3f7
add esp, 0xc
lea ecx, [ebp - 0x218]
call fcn.0040ad0b
lea eax, [ebp - 0x218]
mov ecx, ebx
push eax
call fcn.00406985
mov esi, eax
test esi, esi
jne 0x406ab5
push 0x38
call fcn.00417f38
mov esi, eax
pop ecx
mov dword [ebp - 0x21c], esi
and dword [ebp - 4], 0
test esi, esi
je 0x406a90
lea eax, [ebp - 0x218]
mov byte [esi], 1
push eax
lea ecx, [esi + 4]
call fcn.00403b10
mov byte [ebp - 4], 1
lea ecx, [esi + 0x20]
and dword [esi + 0x1c], 0
call fcn.00404998
mov byte [ebp - 4], 0
jmp 0x406a92
xor esi, esi
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x21c], esi
test esi, esi
je 0x406ab5
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebx + 0x40]
call fcn.00405141
mov esi, dword [ebp - 0x21c]
mov eax, esi
call fcn.00552e55
ret 4
Function at 0x407ae0
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x57d145
call fcn.00552eab
mov esi, ecx
mov dword [ebp - 0x38], esi
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x30], eax
cmp dword [esi + 0x2e4], ebx
jle 0x407bd5
cmp eax, 0xffffffff
je 0x407bd5
push str.____Queued_Lines_End_____r_n
lea ecx, [ebp - 0x28]
call fcn.00403b10
mov dword [ebp - 4], 1
lea edi, [esi + 0x2d4]
push eax
mov ecx, edi
call fcn.0040929a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004043b0
cmp dword [esi + 0x2e4], ebx
jbe 0x407bd5
lea eax, [ebp - 0x1c]
mov ecx, edi
push eax
call fcn.00409c3e
mov edx, eax
mov eax, dword [edx]
test eax, eax
je 0x407b5d
mov eax, dword [eax]
mov ecx, dword [eax + 8]
mov eax, dword [eax + 4]
dec ecx
and ecx, dword [edx + 8]
mov esi, dword [eax + ecx*4]
mov ecx, esi
call fcn.00403ca0
mov ecx, esi
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
call fcn.00403d80
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x407b87
mov ecx, dword [ecx]
push 0
lea eax, [ebp - 0x34]
push eax
mov eax, dword [ebp - 0x2c]
add eax, eax
push eax
push ecx
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407ba4
add ebx, dword [ebp - 0x34]
mov ecx, dword [edi + 8]
mov eax, dword [edi + 4]
dec ecx
and ecx, dword [edi + 0xc]
mov ecx, dword [eax + ecx*4]
call fcn.004043b0
sub dword [edi + 0x10], 1
jne 0x407bc2
and dword [edi + 0xc], 0
jmp 0x407bc5
inc dword [edi + 0xc]
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x2e4], 0
ja 0x407b48
mov eax, ebx
call fcn.00552e55
ret 8
Function at 0x4085db
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x5eefec]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push eax
xor esi, esi
mov ebx, ecx
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x408663
lea eax, [ebp - 0x408]
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x40865c
test dword [ebp - 0x408], 0xfffffffc
jbe 0x40865c
add ebx, 0xbc
push 0x104
push ebx
push dword [ebp + esi*4 - 0x404]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp - 0x408]
inc esi
shr eax, 2
cmp esi, eax
jb 0x40863b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00552958
mov esp, ebp
pop ebp
ret 4
Function at 0x40894e
Capabilities:
Get common file path

Disassembly:
push 0x248
mov eax, 0x57d283
call fcn.00552eab
mov edi, ecx
mov dword [ebp - 0x250], edi
mov esi, dword [ebp + 8]
test esi, esi
je 0x408b60
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40897b
mov al, byte [eax]
jmp 0x40897e
mov al, byte [esi + 0x18]
test al, al
je 0x408b60
mov ecx, esi
call fcn.0040afc9
lea ecx, [ebp - 0x248]
mov ebx, eax
call fcn.00404998
and dword [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.00404998
mov byte [ebp - 4], 1
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
add edi, 0xbc
test eax, eax
je 0x4089e4
push edi
xor eax, eax
push eax
push eax
push 0x8023
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push edi
lea ecx, [ebp - 0x248]
call fcn.00403b70
push ebx
lea ecx, [ebp - 0x230]
jmp 0x408a14
push ebx
push 0x104
push edi
call fcn.0055a3f7
add esp, 0xc
push edi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x230]
call fcn.00403b70
push edi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push edi
lea ecx, [ebp - 0x248]
call fcn.00403b70
test dword [esi + 0x10], 0x20000
je 0x408a86
lea ecx, [ebp - 0x230]
call fcn.00403d80
mov ebx, eax
cmp dword [ebx + 0x14], 8
jb 0x408a37
mov ebx, dword [ebx]
lea ecx, [ebp - 0x248]
call fcn.00403d80
cmp dword [eax + 0x14], 8
jb 0x408a4a
mov eax, dword [eax]
push edi
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x408a86
push 0x104
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x408a86
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x408a86
lea eax, [ebp - 0x218]
add ecx, 4
push eax
call fcn.00403b70
mov ecx, esi
call fcn.0040afc9
mov ebx, eax
push ebx
mov dword [ebp - 0x24c], ebx
call fcn.00558423
pop ecx
test eax, eax
je 0x408b04
xor eax, eax
test dword [esi + 0x10], 0x10000
push eax
push 0x80
je 0x408ab5
push 2
jmp 0x408ab7
push 4
push eax
push eax
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408b04
lea eax, [ebp - 0x254]
push eax
push edi
push 0x104
push 0
push dword [ebp - 0x24c]
push 0
call dword [sym.imp.KERNEL32.dll_SearchPathW]
test eax, eax
je 0x408afd
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x408afd
add ecx, 4
push edi
call fcn.00403b70
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [esi + 0xc], 0x40000000
je 0x408b32
mov edi, dword [ebp - 0x250]
mov ecx, edi
push esi
call fcn.00408676
test dword [esi + 0x10], 0x100000
je 0x408b32
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov ecx, edi
call fcn.004085db
mov eax, dword [esi + 0x14]
test eax, eax
je 0x408b3e
mov byte [eax], 0
jmp 0x408b42
mov byte [esi + 0x18], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x230]
call fcn.004043b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.004043b0
call fcn.00552e55
ret 4