joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42a235
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042a1b1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x42a3ad
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x42a3ad
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x42a35c
jg 0x42a28e
test eax, eax
je 0x42a352
push 1
push 0x1000
call fcn.0041db5a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x42a2b4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x42a349
push 0x8000
push ebx
call fcn.004164c7
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42a2e0
jg 0x42a2db
cmp ecx, 0x1000
jb 0x42a2e0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00426250
add esp, 0x10
cmp eax, 0xffffffff
je 0x42a325
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x42a2db
jl 0x42a30c
test ecx, ecx
jne 0x42a2cd
push dword [ebp - 0xc]
push ebx
call fcn.004164c7
push esi
call fcn.0041ac3b
add esp, 0xc
xor edi, edi
jmp 0x42a3be
cmp byte [edi + 0x24], 0
je 0x42a33c
cmp dword [edi + 0x20], 5
jne 0x42a33c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x42a347
mov edi, dword [edi + 0x18]
jmp 0x42a349
xor edi, edi
push esi
call fcn.0041ac3b
pop ecx
jmp 0x42a3be
test ecx, ecx
jg 0x42a31e
jl 0x42a35c
test eax, eax
jae 0x42a31e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0042a5c1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x42a37f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42a31e
jmp 0x42a3b6
push ebx
call fcn.0041fb2f
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42a31e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x42a3be
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x42a3bb
mov edi, dword [edi + 0x18]
jmp 0x42a3be
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0042a5c1
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x42b4f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b51d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b51d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40153a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
push ebx
push esi
push edi
call sub.KERNEL32.dll_GetTickCount
lea eax, [ebp - 0x104]
push eax
push 0x104
call sub.KERNEL32.dll_GetTempPathA
cmp byte [ebp - 0x104], 0
jne 0x4016a4
sbb al, 0x9c
pop es
add byte [edi + 0x5e], bl
pop ebx
pop ebp
ret 8
cmp byte [ebp - 0x104], 0
jne 0x4017f1
inc ebp
in al, dx
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x44498f
push 0
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_GetFileAttributesExA
call sub.KERNEL32.dll_GetLastError
mov edi, eax
cmp dword [0x42406a], 0
je 0x40181c
mov ebx, edi
add ebx, edi
jmp 0x40181e
mov ebx, edi
mov esi, ebx
and esi, 0xffffffa8
or edi, edi
jne 0x40197b
test eax, eax
jne 0x5b334f
push dword [ebp + 0x10]
push edi
push esi
call fcn.004016d9
mov esi, eax
lea ecx, [ebp - 0x18]
call 0x44d3b6
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call 0x4b56f9
leave
ret 0xc
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41fb6c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00416e52
and dword [ebp - 0x14], 0
cmp dword [0x46d558], 0
mov dword [ebp - 0x18], eax
jne 0x41fc1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41fcc7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41fcc7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46d558], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46d55c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46d560], eax
call edi
push eax
call esi
mov dword [0x46d568], eax
test eax, eax
je 0x41fc1f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46d564], eax
mov eax, dword [0x46d564]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41fc78
cmp dword [0x46d568], ecx
je 0x41fc78
push eax
call esi
push dword [0x46d568]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41fc78
test ebx, ebx
je 0x41fc78
call edi
test eax, eax
je 0x41fc6f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41fc6f
test byte [ebp - 8], 1
jne 0x41fc78
or dword [ebp + 0x10], 0x200000
jmp 0x41fcab
mov eax, dword [0x46d55c]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41fcab
mov eax, dword [0x46d560]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46d558]
call esi
test eax, eax
je 0x41fcc7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41fcc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113cb
leave
ret

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

Disassembly:
pushal
mov eax, section..text
nop
nop
mov ebx, 0x408e84
nop
mov ecx, 0x428d6d2b
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x2ef14c52
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4033bb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4033e6
mov ecx, dword [0x476f98]
push esi
add eax, ecx
push esi
push eax
mov dword [0x43c254], eax
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.004034c3
cmp eax, esi
jl 0x4034bd
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.0040623a
test eax, eax
je 0x4034ad
push dword [ebp + 8]
add dword [0x43c254], 4
call fcn.004034c3
mov ebx, eax
cmp ebx, esi
jl 0x4034bb
cmp dword [ebp + 0x10], esi
jne 0x403489
cmp dword [ebp + 8], esi
jle 0x4034bb
mov esi, 0x430250
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40344b
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.0040623a
test eax, eax
je 0x4034ad
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00406269
test eax, eax
je 0x403485
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x43c254], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x40343a
jmp 0x4034bb
push 0xfffffffffffffffe
jmp 0x4034af
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403494
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4034b2
push 0xfffffffffffffffd
pop eax
jmp 0x4034bd
mov ebx, dword [ebp - 4]
add dword [0x43c254], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x405caa
Capabilities:
Create process on windows

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

Function at 0x405ced
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
push eax
and dword [eax + 0x24], 0
mov dword [eax], 0x3c
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00406192
mov edi, eax
cmp edi, 0xffffffff
je 0x405dcc
test byte [esp + 0x10], 1
push esi
je 0x405dae
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x405db4
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x405dbd
xor eax, eax
inc eax
jmp 0x405dce
test byte [esp + 0x10], 4
jne 0x405dcc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405dd3
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040609e
test bl, 8
mov dword [ebp - 8], eax
je 0x405e12
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x476fc8], eax
jmp 0x405f8f
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x405e2c
test eax, eax
je 0x405f3d
test bl, 2
je 0x405f3d
mov esi, 0x45c2b0
push edi
push esi
call fcn.004066c7
cmp dword [ebp + 8], 0
je 0x405e4b
push 0x40a59c
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405e51
push edi
call fcn.00405fe2
cmp word [edi], 0
jne 0x405e61
cmp word [0x45c2b0], 0x5c
jne 0x405e6c
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405f32
cmp word [ebp - 0x22c], 0x2e
jne 0x405eb6
cmp word [ebp - 0x22a], 0
je 0x405f15
cmp word [ebp - 0x22a], 0x2e
jne 0x405eb6
cmp word [ebp - 0x228], 0
je 0x405f15
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.004066c7
test byte [ebp - 0x258], 0x10
je 0x405ee1
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405f15
push dword [ebp + 0xc]
push edi
call fcn.00405dd3
jmp 0x405f15
push dword [ebp - 4]
push edi
call fcn.00405d8b
test eax, eax
jne 0x405f0d
cmp dword [ebp - 4], eax
je 0x405f05
push edi
push 0xfffffffffffffff1
call fcn.0040574c
push 0
push edi
call fcn.00406487
jmp 0x405f15
inc dword [0x476fc8]
jmp 0x405f15
push edi
push 0xfffffffffffffff2
call fcn.0040574c
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405e8e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405f3d
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405f8f
cmp dword [ebp - 8], esi
jne 0x405f51
inc dword [0x476fc8]
jmp 0x405f8f
push edi
call fcn.00406a24
test eax, eax
je 0x405f8f
push edi
call fcn.00405f96
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405d8b
test eax, eax
jne 0x405f87
cmp dword [ebp - 4], esi
je 0x405f49
push edi
push 0xfffffffffffffff1
call fcn.0040574c
push esi
push edi
call fcn.00406487
jmp 0x405f8f
push edi
push 0xffffffffffffffe5
call fcn.0040574c
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40609e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x4602b0
push esi
call fcn.004066c7
push esi
call fcn.00406041
mov edi, eax
test edi, edi
jne 0x4060bf
xor eax, eax
jmp 0x406117
push edi
call fcn.00406975
test byte [0x476f58], 0x80
je 0x4060dc
mov ax, word [edi]
test ax, ax
je 0x4060bb
cmp ax, 0x5c
je 0x4060bb
sub edi, esi
sar edi, 1
jmp 0x4060f6
call fcn.00406a24
test eax, eax
je 0x4060f0
test byte [eax], 0x10
je 0x4060bb
push esi
call fcn.00405fe2
push esi
call sub.KERNEL32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x4060e2
call fcn.00405f96
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

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

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x4061b1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x4061b7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
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_CreateFileW]
ret 0xc

Function at 0x4061e6
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a5a8]
dec edi
mov dword [ebp - 8], eax
mov eax, dword [0x40a5ac]
mov dword [ebp - 4], eax
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 word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x406236
test edi, edi
jne 0x4061f3
and word [esi], di
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x406230
Function at 0x40630d
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x464948], 0x55004e
mov dword [0x46494c], 0x4c
mov edi, 0x400
mov ebp, 0x464948
je 0x406363
push 1
push 0
push esi
call fcn.004061b7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x406482
cmp eax, edi
jg 0x406482
mov esi, 0x465148
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x406482
cmp eax, edi
jg 0x406482
push esi
push ebp
push str._ls_ls_r_n
push 0x464548
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x476f50]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406704
push 4
push 0xc0000000
push esi
call fcn.004061b7
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x406482
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 0x40647b
push edi
push esi
push ebp
call fcn.0040623a
test eax, eax
je 0x40647b
push str._Rename__r_n
push esi
call fcn.0040611c
test eax, eax
jne 0x406419
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40644e
add eax, 0xa
push 0x40a5b0
push eax
call fcn.0040611c
mov ebp, eax
test ebp, ebp
je 0x40644a
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x40643b
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406435
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x406450
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x464548
push eax
call fcn.00406172
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00406269
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406487
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4064aa
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040630d
pop ecx
pop ecx
inc dword [0x476fd0]
ret 8
Function at 0x406595
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x4000
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00406534
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406605
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x3ffe], 0
test edi, edi
pop edi
jne 0x406605
cmp dword [ebp + 0xc], 1
je 0x406609
cmp dword [ebp + 0xc], 2
je 0x406609
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x406a4b
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406a6f
xor eax, eax
test eax, eax
je 0x406a82
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x406a82
xor ecx, ecx
jmp 0x406a85
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x46594c], 0
push esi
jne 0x406bdf
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 0x406bb9
mov dword [ecx*4 + 0x465948], eax
inc ecx
cmp ecx, 0x100
jl 0x406bb4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406c10
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 + 0x465948]
xor eax, esi
inc ecx
dec edx
jne 0x406bf2
pop edi
not eax
pop esi
ret 0xc
Function at 0x469812
Capabilities:
Parse pe header

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

Function at 0x4730c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4730ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4730ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4752c5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4841a8
push 0x4841a0
push str.FlsAlloc
push 0x1f
call fcn.004756dc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4752f9
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x4752ff
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x475343
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4841b8
push 0x4841b0
push str.FlsGetValue
push 0x21
call fcn.004756dc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x47537a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x475382
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4841c0
push 0x4841b8
push str.FlsSetValue
push 0x22
call fcn.004756dc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4753bc
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x478e43
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x48f7ac]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.0047492b
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.0047492b
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x478eba
cmp word [ecx], dx
je 0x478eba
mov eax, dword [0x4845f4]
push edi
dec eax
push eax
push 0x4844e0
call fcn.00479033
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x478f2d
cmp word [eax], dx
je 0x478f2d
mov eax, dword [edi]
test eax, eax
je 0x478ede
cmp word [eax], dx
je 0x478ede
lea eax, [ebp - 0x10]
push eax
call fcn.00479094
jmp 0x478ee7
lea eax, [ebp - 0x10]
push eax
call fcn.00479382
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x478f57
mov eax, dword [0x4844dc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4841d0
call fcn.00479033
add esp, 0xc
test al, al
je 0x478f57
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x478f22
cmp word [eax], di
je 0x478f22
lea eax, [ebp - 0x10]
push eax
call fcn.00479094
pop ecx
jmp 0x478f59
lea eax, [ebp - 0x10]
push eax
call fcn.00479382
jmp 0x478f1f
mov eax, dword [edi]
test eax, eax
je 0x478f44
cmp word [eax], dx
je 0x478f44
lea eax, [ebp - 0x10]
push eax
call fcn.004794b6
pop ecx
jmp 0x478f57
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x479022
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004795a8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x479022
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x479022
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x479022
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x478faf
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0047551f
test ebx, ebx
je 0x47901d
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0047551f
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x479022
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x479022
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0047ee17
add esp, 0x10
xor eax, eax
inc eax
jmp 0x479024
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00467484
leave
ret