joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49a280
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x20], 0x67452301
mov dword [ecx + 0x24], 0xefcdab89
mov dword [ecx + 0x28], 0x98badcfe
mov dword [ecx + 0x2c], 0x10325476
mov dword [ecx + 0x30], 0xc3d2e1f0
ret

Function at 0x49a2b0
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [0x4bb604]
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x20], 0x67452301
mov dword [ecx + 0x24], 0xefcdab89
mov dword [ecx + 0x28], 0x98badcfe
mov dword [ecx + 0x2c], 0x10325476
mov dword [ecx + 0x30], 0xc3d2e1f0
ret

Function at 0x49aa40
Capabilities:
Hash data using sha1

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 8]
and eax, 0x3f
mov byte [eax + esi + 0x40], 0x80
inc eax
push edi
mov edi, edx
cmp eax, 0x38
jbe 0x49aa82
cmp eax, 0x40
je 0x49aa74
mov edx, 0x40
sub edx, eax
push edx
lea ecx, [eax + esi + 0x40]
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
xor eax, eax
mov ecx, 0x38
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x40]
push 0
push edx
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
add esp, 0xc
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
mov ecx, dword [esi + 0x20]
bswap ecx
mov dword [edi], ecx
mov edx, dword [esi + 0x24]
bswap edx
mov dword [edi + 4], edx
mov eax, dword [esi + 0x28]
bswap eax
mov dword [edi + 8], eax
mov ecx, dword [esi + 0x2c]
bswap ecx
mov dword [edi + 0xc], ecx
mov edx, dword [esi + 0x30]
bswap edx
mov dword [edi + 0x10], edx
pop edi
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x67452301
mov dword [esi + 0x24], 0xefcdab89
mov dword [esi + 0x28], 0x98badcfe
mov dword [esi + 0x2c], 0x10325476
mov dword [esi + 0x30], 0xc3d2e1f0
pop esi
pop ebx
ret

Function at 0x49ac80
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x49acd0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [0x4bb608]
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret
Function at 0x49b2f0
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
and eax, 0x3f
mov byte [eax + esi + 0x40], 0x80
inc eax
push edi
mov edi, edx
cmp eax, 0x38
jbe 0x49b333
cmp eax, 0x40
je 0x49b325
mov edx, 0x40
sub edx, eax
push edx
lea ecx, [eax + esi + 0x40]
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
xor eax, eax
mov ecx, 0x38
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x40]
push 0
push edx
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
add esp, 0xc
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
lea ecx, [esi + 0x20]
mov edx, 4
mov eax, dword [ecx + 4]
mov ebp, dword [ecx]
bswap ebp
bswap eax
mov dword [edi], ebp
mov dword [edi + 4], eax
add edi, 8
add ecx, 8
dec edx
jne 0x49b378
xor eax, eax
pop edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret

Function at 0x49b894
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad4e8
push 0x49b88e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x4c231c], 0xffffffff
or dword [0x4c2320], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x4be2d8]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x4be2d4]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4c2318], eax
call fcn.0049b9d4
cmp dword [0x4bb630], 0
jne 0x49b917
push 0x416dbe
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00559000
push 0x4bb0d4
push 0x4bb0d0
call sub.MSVCRT.dll__initterm
mov eax, dword [0x4be2d0]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4be2cc]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x4bb0cc
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.00442fba
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x402cd0
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, esi
lea eax, [ebp - 4]
and esi, 0x300
push eax
mov eax, esi
and edi, 1
or al, 9
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405f47
xor ebx, ebx
cmp eax, ebx
jne 0x402db3
test byte [ebp + 0x10], 2
je 0x402d31
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push ebx
push eax
lea eax, [ebp - 0x110]
mov dword [ebp - 8], ebx
push eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
cmp eax, 0x103
jne 0x402d98
lea eax, [ebp - 0x110]
push 0x105
push eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
jmp 0x402d6d
test edi, edi
jne 0x402d98
push dword [ebp + 0x10]
lea eax, [ebp - 0x110]
push eax
push dword [ebp - 4]
call fcn.00402cd0
test eax, eax
jne 0x402d76
lea eax, [ebp - 0x110]
push 0x105
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x402d46
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004064ca
test eax, eax
jne 0x402da8
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x402db3
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x3eb
jmp 0x402db3
push 0
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4030d8
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
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 0x4030f5
mov dword [ebp - 8], 0x8000
and dword [ebp - 4], 0
mov ebx, edi
test edi, edi
jne 0x403104
mov ebx, 0x4178e0
mov eax, dword [ebp + 8]
test eax, eax
jl 0x403119
mov ecx, dword [0x424798]
add ecx, eax
push ecx
call fcn.004032ca
lea eax, [ebp + 0x14]
push 4
push eax
call fcn.004032b4
test eax, eax
je 0x40326b
test byte [ebp + 0x17], 0x80
je 0x403254
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x40b850
mov dword [ebp - 0xc], eax
call fcn.004065ef
and dword [ebp + 0x14], 0x7fffffff
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
jle 0x4032aa
mov esi, 0x4000
cmp dword [ebp + 0x14], esi
jge 0x403169
mov esi, dword [ebp + 0x14]
mov edi, 0x4138e0
push esi
push edi
call fcn.004032b4
test eax, eax
je 0x40326b
sub dword [ebp + 0x14], esi
mov dword [0x40b868], edi
mov dword [0x40b86c], esi
mov eax, dword [ebp - 8]
mov ecx, 0x40b850
mov dword [0x40b870], ebx
mov dword [0x40b874], eax
call fcn.0040660f
test eax, eax
mov dword [ebp - 0x10], eax
jl 0x40324c
mov esi, dword [0x40b870]
sub esi, ebx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x4247f4], 1
mov edi, eax
je 0x40320b
sub eax, dword [ebp - 0xc]
cmp eax, 0xc8
ja 0x4031d8
cmp dword [ebp + 0x14], 0
jne 0x40320b
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 - 0x50]
push str....__d__
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
push 0
call fcn.004051e8
mov dword [ebp - 0xc], edi
test esi, esi
je 0x403240
cmp dword [ebp + 0x10], 0
jne 0x403228
push esi
push ebx
push dword [ebp + 0xc]
call fcn.00405d01
test eax, eax
je 0x403250
add dword [ebp - 4], esi
jmp 0x403234
add dword [ebp - 4], esi
sub dword [ebp - 8], esi
mov ebx, dword [0x40b870]
cmp dword [ebp - 0x10], 1
jne 0x40318c
jmp 0x4032aa
cmp dword [ebp + 0x14], 0
jg 0x40315c
jmp 0x4032aa
push 0xfffffffffffffffc
jmp 0x40326d
push 0xfffffffffffffffe
jmp 0x40326d
test edi, edi
je 0x40329f
cmp dword [ebp + 0x14], esi
jge 0x403260
mov esi, dword [ebp + 0x14]
push esi
push edi
call fcn.004032b4
test eax, eax
jne 0x4032a7
push 0xfffffffffffffffd
pop eax
jmp 0x4032ad
mov esi, dword [ebp - 8]
cmp dword [ebp + 0x14], esi
jge 0x40327b
mov esi, dword [ebp + 0x14]
mov edi, 0x4138e0
push esi
push edi
call fcn.004032b4
test eax, eax
je 0x40326b
push esi
push edi
push dword [ebp + 0xc]
call fcn.00405d01
test eax, eax
je 0x403250
add dword [ebp - 4], esi
sub dword [ebp + 0x14], esi
cmp dword [ebp + 0x14], 0
jg 0x403270
jmp 0x4032aa
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4056ae
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x408384
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x408374
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4056ff
xor eax, eax
jmp 0x405726
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405726
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x4056fb
call esi
pop esi
leave
ret 4

Function at 0x405760
Capabilities:
Create process on windows

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

Function at 0x4057a3
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_ShellExecuteExA]
ret 4

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.00405c35
mov edi, eax
cmp edi, 0xffffffff
je 0x405882
test byte [esp + 0x10], 1
push esi
je 0x405864
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x40586a
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405873
xor eax, eax
inc eax
jmp 0x405884
test byte [esp + 0x10], 4
jne 0x405882
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x405889
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
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.00405b47
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4058c8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4247c8], eax
jmp 0x405a52
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4058e2
test eax, eax
je 0x405a00
test bl, 2
je 0x405a00
mov esi, 0x421d30
push edi
push esi
call fcn.004060c1
cmp dword [ebp + 8], 0
je 0x405901
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x405907
push edi
call fcn.00405aa0
cmp byte [edi], 0
jne 0x405915
cmp byte [0x421d30], 0x5c
jne 0x405920
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4059f6
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405a84
cmp byte [eax], 0
je 0x405966
cmp byte [ebp - 0x1c], 0
je 0x405966
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x40597c
mov al, byte [esi + 1]
test al, al
je 0x4059d5
cmp al, 0x2e
jne 0x40597c
cmp byte [esi + 2], 0
je 0x4059d5
push esi
push ebx
call fcn.004060c1
test byte [ebp - 0x14c], 0x10
je 0x4059a1
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4059d5
push dword [ebp + 0xc]
push edi
call fcn.00405889
jmp 0x4059d5
push dword [ebp - 4]
push edi
call fcn.00405841
test eax, eax
jne 0x4059cd
cmp dword [ebp - 4], eax
je 0x4059c5
push edi
push 0xfffffffffffffff1
call fcn.004051e8
push 0
push edi
call fcn.00405ea0
jmp 0x4059d5
inc dword [0x4247c8]
jmp 0x4059d5
push edi
push 0xfffffffffffffff2
call fcn.004051e8
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405944
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405a00
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405a52
cmp dword [ebp - 0xc], esi
jne 0x405a14
inc dword [0x4247c8]
jmp 0x405a52
push edi
call fcn.00406435
test eax, eax
je 0x405a52
push edi
call fcn.00405a59
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405841
test eax, eax
jne 0x405a4a
cmp dword [ebp - 4], esi
je 0x405a0c
push edi
push 0xfffffffffffffff1
call fcn.004051e8
push esi
push edi
call fcn.00405ea0
jmp 0x405a52
push edi
push 0xffffffffffffffe5
call fcn.004051e8
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x405b47
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x422130
push esi
call fcn.004060c1
push esi
call fcn.00405af2
mov edi, eax
test edi, edi
jne 0x405b68
xor eax, eax
jmp 0x405bba
push edi
call fcn.0040639c
test byte [0x42473c], 0x80
je 0x405b81
mov al, byte [edi]
test al, al
je 0x405b64
cmp al, 0x5c
je 0x405b64
sub edi, esi
jmp 0x405b99
call fcn.00406435
test eax, eax
je 0x405b93
test byte [eax], 0x10
je 0x405b64
push esi
call fcn.00405aa0
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405b85
call fcn.00405a59
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 0x405c35
Capabilities:
Check if file exists
Get file attributes
Set file attributes

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

Function at 0x405c5a
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 0x405c89
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x40a3d4]
dec edi
mov dword [ebp + 8], 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 byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405cce
test edi, edi
jne 0x405c94
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405cc8
Function at 0x405d30
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x422ab8], 0x4c554e
mov edi, 0x400
mov ebp, 0x422ab8
je 0x405d7c
push 1
push 0
push esi
call fcn.00405c5a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405e9b
cmp eax, edi
jg 0x405e9b
mov esi, 0x422eb8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405e9b
cmp eax, edi
jg 0x405e9b
push esi
push ebp
push str._s_s_r_n
push 0x4226b8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x424734]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00406154
push 4
push 0xc0000000
push esi
call fcn.00405c5a
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405e9b
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 0x405e94
push edi
push esi
push ebp
call fcn.00405cd2
test eax, eax
je 0x405e94
push str._Rename__r_n
push esi
call fcn.00405bbf
test eax, eax
jne 0x405e32
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405e67
add eax, 0xa
push 0x40a3d8
push eax
call fcn.00405bbf
mov ebp, eax
test ebp, ebp
je 0x405e63
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405e54
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405e4e
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405e69
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4226b8
push eax
call fcn.00405c15
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.00405d01
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 0x405ea0
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405ec3
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405d30
pop ecx
pop ecx
inc dword [0x4247d0]
ret 8

Function at 0x405fa8
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], 0x400
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00405f47
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x406017
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_RegQueryValueExA]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and byte [esi + 0x3ff], 0
test edi, edi
pop edi
jne 0x406017
cmp dword [ebp + 0xc], 1
je 0x40601a
cmp dword [ebp + 0xc], 2
je 0x40601a
and byte [esi], 0
pop esi
leave
ret 0x14
Function at 0x40645c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406480
xor eax, eax
test eax, eax
je 0x406492
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406492
xor ecx, ecx
jmp 0x406495
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

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

Disassembly:
cmp dword [0x4232bc], 0
push esi
jne 0x4065b8
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 0x406592
mov dword [ecx*4 + 0x4232b8], eax
inc ecx
cmp ecx, 0x100
jl 0x40658d
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4065e9
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 + 0x4232b8]
xor eax, esi
inc ecx
dec edx
jne 0x4065cb
pop edi
not eax
pop esi
ret 0xc
Function at 0x40141c
Capabilities:
Create process on windows
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push 0x10
xor esi, esi
lea eax, [ebp - 0x14]
push esi
push eax
mov dword [ebp - 4], 1
call fcn.00403fa0
push 0x44
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.00403fa0
add esp, 0x18
cmp dword [0x4124d0], esi
je 0x401474
push 0x4124cc
push str.Country
push esi
call fcn.00402cfe
push 0x4122c8
push str.PostStatusUrl
push esi
call fcn.00402cfe
add esp, 0x18
jmp 0x401483
push esi
push str.PostStatusUrl
push esi
call fcn.00402cfe
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop esi
je 0x4014c1
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
leave
ret

Function at 0x401e86
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
cmp dword [0x41252c], 0
je 0x401e9f
mov eax, dword [0x412528]
leave
ret
push 0x94
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.00403fa0
add esp, 0xc
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x94], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x84], 2
jne 0x401ee5
cmp dword [ebp - 0x90], 6
jne 0x401ee5
mov eax, ecx
jmp 0x401ee7
xor eax, eax
mov dword [0x412528], eax
mov dword [0x41252c], ecx
leave
ret

Function at 0x4020a2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push edi
push esi
lea eax, [ebp - 4]
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp esi, ebx
je 0x4020f1
cmp dword [ebp - 4], ebx
jbe 0x4020ee
cmp dword [ebp - 4], 2
jbe 0x4020f8
cmp dword [ebp - 4], 7
jne 0x4020ee
mov ecx, dword [edi]
cmp ecx, 2
jb 0x4020ee
add ecx, esi
cmp byte [ecx - 1], bl
jne 0x4020ee
cmp byte [ecx - 2], bl
je 0x4020f1
push 0xd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
mov ecx, dword [edi]
cmp byte [ecx + esi - 1], bl
jmp 0x4020ec