joyce8/EMBER2024-capa huggingface dataset:
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40de38
nop
mov ecx, 0x51a78cc
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x4304d8
mov ecx, 0x135f7a30
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x429570
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x19000]
push edi
or ebp, 0xffffffff
jmp 0x429592
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x429599
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x429588
mov eax, 1
add ebx, ebx
jne 0x4295ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4295a0
jne 0x4295bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4295a0
xor ecx, ecx
sub eax, 3
jb 0x4295d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x429642
mov ebp, eax
add ebx, ebx
jne 0x4295db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4295e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42960c
inc ecx
add ebx, ebx
jne 0x4295f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4295ed
jne 0x429609
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4295ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42962c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42961d
jmp 0x42958e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42962c
add edi, ecx
jmp 0x42958e
pop esi
mov edi, esi
mov ecx, 0xddf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42964a
cmp byte [edi], 5
jne 0x42964a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x42964f
lea edi, [esi + 0x27000]
mov eax, dword [edi]
or eax, eax
je 0x4296c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2acd8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2ad8c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42967c
mov ecx, edi
jns 0x4296ab
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2ad90]
or eax, eax
je 0x4296c1
mov dword [ebx], eax
add ebx, 4
jmp 0x429699
call dword [esi + 0x2ad94]
popal
jmp 0x404662
Function at 0x44897a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4956c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00445807
mov dword [ebp - 0x14], eax
cmp dword [0x4db23c], edi
jne 0x448a6b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4489f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x448b4b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x448b4b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x448b4b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4db23c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4db240], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4db244], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4db24c], eax
test eax, eax
je 0x448a68
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4db248], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x448a90
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x448a83
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x448aa5
push 4
pop eax
jmp 0x448b4d
cmp dword [ebp - 0x14], edi
je 0x448aa5
push dword [0x4db23c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x448a8a
mov eax, dword [0x4db248]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x448b03
cmp dword [0x4db24c], esi
je 0x448b03
push eax
call ebx
push dword [0x4db24c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x448b03
test eax, eax
je 0x448b03
call ecx
test eax, eax
je 0x448af8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x448af8
test byte [ebp - 8], 1
jne 0x448b03
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x448b33
mov eax, dword [0x4db240]
cmp eax, esi
je 0x448b30
push eax
call ebx
test eax, eax
je 0x448b30
call eax
mov edi, eax
test edi, edi
je 0x448b30
mov eax, dword [0x4db244]
cmp eax, esi
je 0x448b30
push eax
call ebx
test eax, eax
je 0x448b30
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4db23c]
call ebx
test eax, eax
je 0x448b4b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x448b4d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00442b19
leave
ret
Function at 0x404e25
Capabilities:
Delete file
Get common file path

Disassembly:
push 0x85c
mov eax, 0x444c19
call fcn.0042c1aa
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push eax
mov edi, ecx
call fcn.0042d4e0
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [ebp - 0x830], ax
lea eax, [ebp - 0x82e]
push eax
call fcn.0042d4e0
add esp, 0xc
lea eax, [ebp - 0x628]
push eax
mov ebx, 0x44af00
xor ecx, ecx
call fcn.0040bb5c
lea eax, [ebp - 0x830]
push eax
mov ebx, str.cachedump
xor ecx, ecx
call fcn.0040bb5c
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
je 0x405077
xor eax, eax
push esi
mov word [ebp - 0x420], ax
xor ebx, ebx
lea eax, [ebp - 0x41e]
push ebx
push eax
call fcn.0042d4e0
add esp, 0xc
push 1
push ebx
lea eax, [ebp - 0x420]
push eax
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.client_log.zip
lea eax, [ebp - 0x420]
push eax
call edi
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
push esi
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.0042d4e0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.client_log
lea eax, [ebp - 0x218]
push eax
call edi
lea esi, [ebp - 0x218]
call fcn.0040b618
mov eax, esi
push eax
lea ebx, [ebp - 0x628]
call fcn.0040b921
lea eax, [ebp - 0x84c]
push eax
call fcn.0040598a
mov eax, esi
xor ebx, ebx
push eax
lea esi, [ebp - 0x868]
mov dword [ebp - 4], ebx
call fcn.0040160a
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x838]
mov ecx, dword [ebp - 0x84c]
push eax
push ecx
mov eax, esi
push eax
lea edi, [ebp - 0x84c]
call fcn.004059f2
push ebx
push 1
mov byte [ebp - 4], bl
call fcn.0040189d
lea eax, [ebp - 0x830]
push eax
lea esi, [ebp - 0x868]
call fcn.0040160a
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x838]
mov ecx, dword [ebp - 0x84c]
push eax
push ecx
mov eax, esi
push eax
call fcn.004059f2
push ebx
push 1
mov byte [ebp - 4], bl
call fcn.0040189d
lea ecx, [ebp - 0x868]
call fcn.0041b848
push eax
mov eax, edi
mov byte [ebp - 4], 3
call fcn.004059d9
push ebx
push 1
lea esi, [ebp - 0x868]
mov byte [ebp - 4], bl
call fcn.0040189d
lea ecx, [ebp - 0x868]
call fcn.0041b8c1
push eax
mov eax, edi
mov byte [ebp - 4], 4
call fcn.004059d9
push ebx
push 1
lea esi, [ebp - 0x868]
mov byte [ebp - 4], bl
call fcn.0040189d
mov ecx, edi
lea ebx, [ebp - 0x420]
call fcn.00421fa8
test eax, eax
jne 0x405041
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, ebx
call fcn.0040d33a
jmp 0x405055
push eax
push 0x44af58
push 0
xor edi, edi
xor esi, esi
call fcn.0040bc2b
add esp, 0xc
lea esi, [ebp - 0x218]
call fcn.0040bab3
lea edi, [ebp - 0x84c]
call fcn.00405a7b
push dword [ebp - 0x84c]
call fcn.0042af3e
pop ecx
call fcn.0042c22d
ret
Function at 0x405774
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x11bc
call fcn.004368e0
mov eax, dword [0x456070]
xor eax, esp
mov dword [esp + 0x11b8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push str.GlobalA51BB395_ECF3_4294_9A75_995BAB94ED74
mov dword [esp + 0x14], edi
call fcn.00404a73
test eax, eax
je 0x4057b2
push 2
pop eax
jmp 0x405973
cmp dword [0x458cf8], 2
je 0x4057c3
xor eax, eax
inc eax
jmp 0x405973
call fcn.0040c9cc
mov esi, str.17D54393_825C_44ab_B8AB_BC49A255D47B
push esi
call fcn.00404a73
test eax, eax
jne 0x405971
push esi
push 0x12
push 0x12
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push 1
push 2
call dword [sym.imp.KERNEL32.dll_SetProcessShutdownParameters]
push 0x190
lea eax, [esp + 0x34]
push ebx
push eax
call fcn.0042d4e0
add esp, 0xc
lea eax, [esp + 0x30]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
push 3
call dword [sym.imp.libcurl32.dll_curl_global_init]
mov dword [esp], str.SetProcessDPIAware
push str.user32.dll
mov byte [0x459b7a], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
cmp eax, ebx
je 0x405845
call eax
call fcn.00406244
call fcn.0041d911
mov eax, dword [0x45b394]
cmp eax, ebx
jne 0x40586e
push 0x44b7fc
call fcn.00409d51
push eax
call esi
mov dword [0x45b394], eax
cmp eax, ebx
je 0x405876
push 0x40102b
push edi
call eax
call fcn.004206f9
lea ecx, [esp + 0x14]
call fcn.0041b848
cmp dword [eax + 0x18], 8
jb 0x40588f
mov eax, dword [eax + 4]
jmp 0x405892
add eax, 4
push eax
call fcn.004085f0
push ebx
push 1
lea esi, [esp + 0x1c]
call fcn.0040189d
call fcn.0040bc79
mov esi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4058fe
push str._X64AgentProtectThread
push 0xe1
push str..poagent.cpp
push str._s._d:_s
lea eax, [esp + 0x1d0]
push 0x800
push eax
call esi
add esp, 0x18
lea eax, [esp + 0x1c0]
push eax
mov eax, dword [0x458d00]
push dword [eax + 4]
push 0x404cbb
call fcn.0040a5ab
push eax
call edi
jmp 0x40590d
mov eax, dword [0x458d00]
push dword [eax + 4]
xor ebx, ebx
call fcn.00402aa9
call fcn.00401523
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0041b804
test eax, eax
je 0x405932
push 0
push str.CLIENT_ONLINE
call fcn.00409dfa
push str._PobusProtectRoutine
push 0xee
push str..poagent.cpp
push str._s._d:_s
lea eax, [esp + 0x1d0]
push 0x800
push eax
call esi
add esp, 0x18
lea eax, [esp + 0x1c0]
push eax
call fcn.0041dca0
push eax
call edi
mov eax, dword [esp + 0x10]
call fcn.004054d5
xor eax, eax
mov ecx, dword [esp + 0x11c4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042af05
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4085f0
Capabilities:
Create thread
Delete registry value
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x446d5c
call fcn.0042c141
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x408616
push 0x104
push dword [ebp + 8]
push 0x45a2f8
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.offlineMode
push str.Softwareprojonepodlp_
mov edi, reloc.WS2_32.dll_bind
push edi
mov dword [ebp + 8], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40864e
cmp dword [ebp - 0x10], 4
jne 0x40864e
mov eax, dword [ebp - 0x14]
jmp 0x408650
xor eax, eax
cmp eax, ebx
je 0x4086ab
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.00401a67
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], ebx
call fcn.0041bf65
pop ecx
push ebx
cmp eax, 5
push 1
lea ecx, [ebp - 0x30]
sete byte [ebp + 0xb]
call fcn.004017a5
cmp byte [ebp + 0xb], bl
je 0x40869a
push str.offline_license_expired
call fcn.0041dce0
pop ecx
call fcn.0040ce93
jmp 0x4086d0
push str._offlieLicExpired
push str.Softwareprojonepodlp_smpcache_
push edi
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
cmp dword [0x457dbc], ebx
je 0x4086d0
push ebx
push ebx
push ebx
push 0x40852a
push ebx
push ebx
mov dword [0x457dbc], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0042c219
ret 4

Function at 0x40a5ab
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x40a5e4
push dword [ebp + 0x10]
push dword [ebp - 4]
push str.thread__d_created:__s
call fcn.0040a042
add esp, 0xc
mov eax, edi
pop edi
leave
ret 0xc

Function at 0x40a5eb
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x456070]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
push 0x44b964
lea ecx, [ebp - 0x20]
call fcn.0040cddb
pop ecx
pop ecx
test esi, esi
je 0x40a656
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp dword [ebp - 8], 8
mov ecx, dword [ebp - 0x1c]
lea eax, [eax + eax + 2]
jae 0x40a62f
lea ecx, [ebp - 0x1c]
push ebx
push edi
push eax
push esi
push ecx
call fcn.0040d197
mov ebx, dword [ebp - 0x1c]
add esp, 0xc
cmp dword [ebp - 8], 8
jae 0x40a648
lea ebx, [ebp - 0x1c]
mov edi, str.Softwareprojonepodlp_volatilelastError_
call fcn.0040ced4
pop edi
pop ebx
jmp 0x40a673
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
jae 0x40a662
lea eax, [ebp - 0x1c]
push eax
push str.Softwareprojonepodlp_volatilelastError_
push reloc.WS2_32.dll_bind
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.0040189d
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042af05
leave
ret
Function at 0x40b2d6
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa94
mov eax, dword [0x456070]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0xa88], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [ebp - 0xa84], eax
mov dword [ebp - 0xa80], ecx
mov dword [ebp - 0xa8c], edx
test esi, esi
je 0x40b4fb
test eax, eax
jne 0x40b327
test ecx, ecx
je 0x40b4fb
movzx eax, word [esi + 2]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp ax, 0x3a
je 0x40b37d
cmp ax, 0x5c
je 0x40b37d
xor eax, eax
push 0x40e
push eax
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x826]
push eax
call fcn.0042d4e0
add esp, 0xc
lea eax, [ebp - 0x828]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea eax, [ebp - 0x828]
push eax
call edi
lea esi, [ebp - 0x828]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b4fb
test al, 0x10
je 0x40b4fb
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [ebp - 0x418]
push eax
call ebx
push 0x44b9c8
lea eax, [ebp - 0x418]
push eax
call edi
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0xa90], eax
cmp eax, 0xffffffff
je 0x40b4fb
mov dword [ebp - 0xa7c], 1
push 0x44b9cc
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40b4c0
push 0x44b9d0
lea eax, [ebp - 0xa4c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40b4c0
cmp dword [ebp - 0xa78], 0xffffffff
je 0x40b4c0
push esi
lea eax, [ebp - 0x210]
push eax
call ebx
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0x210]
push eax
call edi
test byte [ebp - 0xa78], 0x10
je 0x40b4a0
cmp dword [ebp - 0xa80], 0
je 0x40b464
push dword [ebp - 0xa8c]
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0xa80]
test eax, eax
je 0x40b4dd
cmp dword [ebp + 0xc], 0
je 0x40b4c0
push dword [ebp - 0xa8c]
lea eax, [ebp - 0x210]
push dword [ebp - 0xa80]
push dword [ebp - 0xa88]
push dword [ebp - 0xa84]
push dword [ebp + 0xc]
push eax
call fcn.0040b2d6
push 2
pop ecx
cmp eax, ecx
jne 0x40b4c0
mov dword [ebp - 0xa7c], ecx
jmp 0x40b4e7
cmp dword [ebp - 0xa84], 0
je 0x40b4c0
push dword [ebp - 0xa88]
lea eax, [ebp - 0x210]
push eax
call dword [ebp - 0xa84]
test eax, eax
je 0x40b4dd
lea eax, [ebp - 0xa78]
push eax
push dword [ebp - 0xa90]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40b3e0
jmp 0x40b4e7
mov dword [ebp - 0xa7c], 2
push dword [ebp - 0xa90]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0xa7c]
jmp 0x40b4fd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042af05
leave
ret 0x18
Function at 0x40b50e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x456070]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
cmp edi, ebx
je 0x40b608
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x40b608
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.0042d4e0
add esp, 0xc
lea esi, [ebp - 0x210]
mov ecx, edi
call fcn.0040bdb2
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b585
shr eax, 4
not eax
and eax, 1
jmp 0x40b60a
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea esi, [ebp - 0x418]
call fcn.0040b618
test eax, eax
je 0x40b608
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x10000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x40b5ea
mov dword [ebp - 0x41c], 1
cmp eax, 0xffffffff
jne 0x40b5f0
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x420]
call fcn.00404a1d
xor eax, eax
cmp byte [ebp - 0x41c], bl
setne al
jmp 0x40b60a
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0042af05
leave
ret
Function at 0x40b921
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
mov eax, dword [0x456070]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
push ebx
mov dword [ebp - 0x428], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40b9b4
test al, 0x10
je 0x40b9b4
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edi, 0x104
push edi
push ebx
lea eax, [ebp - 0x424]
push eax
call esi
push edi
push dword [ebp - 0x428]
lea eax, [ebp - 0x21c]
push eax
call esi
mov esi, dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
lea eax, [ebp - 0x424]
push eax
call esi
lea eax, [ebp - 0x21c]
push eax
call esi
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x424]
push eax
mov eax, 0x40b9c6
push eax
lea ecx, [ebp - 0x424]
push ecx
push eax
push 1
push ebx
call fcn.0040b2d6
jmp 0x40b9b6
xor eax, eax
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0042af05
leave
ret 4

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

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40ba9c
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
ret
test al, 1
je 0x40baab
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40bb4b
xor eax, eax
jmp 0x40bb59
or eax, 6
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
ret 4

Function at 0x40bc00
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, 0x179b06cc
xor ecx, ecx
push esi
mov edx, dword [esp + 8]
movzx edx, byte [ecx + edx]
movzx esi, al
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x457de0]
inc ecx
cmp ecx, 0x24
jl 0x40bc08
not eax
pop esi
ret 4

Function at 0x40c153
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x456070]
xor eax, esp
mov dword [esp + 0x430], eax
mov eax, fcn.0040c563
push esi
test eax, eax
je 0x40c1e0
push 0x424
lea eax, [esp + 0x10]
push 0
push eax
call fcn.0042d4e0
add esp, 0xc
push dword [ebp + 8]
mov dword [esp + 0xc], 0x428
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp + 4], esi
test esi, esi
je 0x40c1d7
cmp esi, 0xffffffff
je 0x40c1d7
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
jmp 0x40c1d3
push edi
lea eax, [esp + 0xc]
push eax
call fcn.0040c563
test eax, eax
je 0x40c1d7
lea eax, [esp + 8]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x40c1b9
lea eax, [esp + 4]
call fcn.00404a1d
mov ecx, dword [esp + 0x434]
pop esi
xor ecx, esp
call fcn.0042af05
mov esp, ebp
pop ebp
ret 4
Function at 0x40c1f5
Capabilities:
Enumerate processes

Disassembly:
push ebp
sub esp, 0x22c
lea ebp, [esp - 4]
mov eax, dword [0x456070]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push 8
mov eax, 0x442d5a
call fcn.0042c141
mov eax, dword [ebp + 0x238]
mov dword [ebp - 0x14], eax
test edi, edi
je 0x40c28a
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
test esi, esi
je 0x40c282
cmp esi, 0xffffffff
je 0x40c282
push 0x228
lea eax, [ebp + 4]
push 0
push eax
mov dword [ebp], 0x22c
call fcn.0042d4e0
add esp, 0xc
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x40c27e
push dword [ebp - 0x14]
lea eax, [ebp]
push eax
call edi
test eax, eax
je 0x40c282
lea eax, [ebp]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40c267
lea eax, [ebp - 0x10]
call fcn.00404a1d
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.0042af05
add ebp, 0x230
leave
ret 4

Function at 0x40c2af
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esi
xor esi, esi
push edi
cmp dword [ebp + 8], esi
jne 0x40c2c2
xor eax, eax
jmp 0x40c31b
push 0x40
lea eax, [ebp - 0x58]
push esi
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.0042d4e0
mov dword [ebp - 0x14], esi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
add esp, 0xc
call fcn.0040b29c
mov edi, eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40c313
push dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.0040b2c9
mov eax, esi
pop edi
pop esi
leave
ret 4