joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401498
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
mov eax, dword [0x429e10]
or eax, 8
push eax
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x40152d
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x4014ea
cmp dword [ebp + 0x10], ebx
jne 0x401521
push ebx
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 4]
call fcn.00401498
test eax, eax
jne 0x4014fc
push edi
lea eax, [ebp - 0x210]
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x4014d1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 4
call fcn.00405e06
cmp eax, ebx
je 0x401534
push ebx
push dword [0x429e10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x40152d
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 [0x429e10], ebx
jne 0x40152a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40152a
jmp 0x40152d
Function at 0x402fd5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
xor esi, esi
cmp eax, esi
jl 0x402fff
mov ecx, dword [0x429d78]
push esi
add eax, ecx
push esi
push eax
push dword [0x40a014]
mov dword [0x41c9bc], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 4
call fcn.00402e6e
cmp eax, esi
jl 0x4030dc
push 4
lea eax, [ebp + 8]
push eax
push dword [0x40a014]
call fcn.00405a8e
test eax, eax
jne 0x40302b
push 0xfffffffffffffffd
pop eax
jmp 0x4030dc
add dword [0x41c9bc], 4
push ebx
push dword [ebp + 8]
call fcn.00402e6e
mov ebx, eax
cmp ebx, esi
jl 0x4030d9
cmp dword [ebp + 0x10], esi
jne 0x4030a7
cmp dword [ebp + 8], esi
jle 0x4030d9
mov esi, 0x41c9c0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x403069
mov eax, 0x4000
push eax
push esi
push dword [0x40a014]
mov dword [ebp - 4], eax
call fcn.00405a8e
test eax, eax
je 0x4030cb
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00405abd
test eax, eax
je 0x4030a3
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x41c9bc], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x403058
jmp 0x4030d9
push 0xfffffffffffffffe
jmp 0x4030cd
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x4030b2
mov eax, dword [ebp + 0x14]
push esi
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a014]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4030d0
push 0xfffffffffffffffd
pop eax
jmp 0x4030db
mov ebx, dword [ebp - 4]
add dword [0x41c9bc], ebx
mov eax, ebx
pop ebx
pop esi
leave
ret 0x10
Function at 0x405750
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
push 4
pop eax
mov word [ebp - 0x1e], ax
mov eax, 0x408830
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 0x20], 1
mov byte [ebp - 0x1f], 0
mov dword [ebp - 0x10], 0x408820
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4057a1
xor eax, eax
jmp 0x4057ce
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x4057cd
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityW]
test eax, eax
je 0x4057cb
xor eax, eax
jmp 0x4057cd
call esi
pop esi
leave
ret 4

Function at 0x4057ef
Capabilities:
Create process on windows

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

Function at 0x4059e5
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 0x405a05
and eax, 0xfffffffe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405a0b
Capabilities:
Get file attributes

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

Function at 0x405a3a
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 [0x40890c]
mov dword [ebp - 8], eax
mov eax, dword [0x408910]
dec edi
mov dword [ebp - 4], eax
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 word [ebp - 4], dx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x405a8a
test edi, edi
jne 0x405a47
mov word [esi], ax
pop edi
pop esi
leave
ret 8
mov eax, esi
jmp 0x405a84
Function at 0x405b65
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x14]
xor eax, eax
mov word [esi], ax
lea eax, [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405bde
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
mov dword [ebp + 0xc], 0x800
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405bc7
cmp dword [ebp + 0x14], 1
je 0x405bcc
cmp dword [ebp + 0x14], 2
je 0x405bcc
xor eax, eax
mov word [esi], ax
push dword [ebp + 0x18]
xor eax, eax
mov word [esi + 0x7fe], ax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
ret 0x14

Function at 0x405d96
Capabilities:
Get common file path

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

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

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.004059e5
mov edi, eax
cmp edi, 0xffffffff
je 0x405f0e
test byte [esp + 0x10], 1
push esi
je 0x405ef7
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x405eff
xor eax, eax
inc eax
jmp 0x405f10
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x405eee
test byte [esp + 0x10], 4
jne 0x405f0e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
pop edi
pop esi
ret 8

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

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425258
push esi
call fcn.00405c9c
push esi
call fcn.0040590e
mov edi, eax
test edi, edi
jne 0x405f92
xor eax, eax
jmp 0x405ff0
push edi
call fcn.00405cbe
test byte [0x429d88], 0x80
je 0x405faf
movzx eax, word [edi]
test ax, ax
je 0x405f8e
cmp ax, 0x5c
je 0x405f8e
sub edi, esi
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
sar edi, 1
jmp 0x405fd1
push esi
call fcn.00405d6f
test eax, eax
je 0x405fcb
test byte [eax], 0x10
je 0x405ff5
push esi
call fcn.00405f44
push esi
call ebx
cmp eax, edi
jg 0x405fbc
push esi
call fcn.00405f15
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop ebx
pop edi
pop esi
ret 4
xor eax, eax
jmp 0x405fef
Function at 0x406270
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x408958
mov ebx, 0x425a58
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov edi, 0x400
test esi, esi
je 0x4062be
push 1
push 0
push esi
call fcn.00405a0b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push esi
call ebp
test eax, eax
je 0x4063dd
cmp eax, edi
jg 0x4063dd
push edi
mov esi, 0x4270a8
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x4063dd
cmp eax, edi
jg 0x4063dd
push esi
push ebx
push str._ls_ls_r_n
push 0x4264a8
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ebx, eax
mov eax, dword [0x429d2c]
push dword [eax + 0x128]
push esi
call fcn.00405ff9
push 4
push 0xc0000000
push esi
call fcn.00405a0b
mov ebp, eax
mov dword [esp + 0x18], ebp
cmp ebp, 0xffffffff
je 0x4063dd
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 0x4063d6
push edi
push esi
push ebp
call fcn.00405a8e
test eax, eax
je 0x4063d6
push str._Rename__r_n
push esi
call fcn.0040596b
test eax, eax
jne 0x406374
push str._Rename__r_n
lea eax, [esi + edi]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x4063a9
push 0x40893c
add eax, 0xa
push eax
call fcn.0040596b
mov ebp, eax
test ebp, ebp
je 0x4063a5
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406396
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406390
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4063ab
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
push 0x4264a8
add eax, esi
push eax
call fcn.004059c1
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.00405abd
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 0x4063e2
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 0x406405
push dword [esp + 8]
push dword [esp + 8]
call fcn.00406270
pop ecx
pop ecx
inc dword [0x429df0]
ret 8
Function at 0x40640e
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 edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405f71
mov dword [ebp - 8], eax
test bl, 8
je 0x40644c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x429de8], eax
jmp 0x4065ce
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
push esi
je 0x406467
test eax, eax
je 0x40657a
test bl, 2
je 0x40657a
push edi
mov esi, 0x4268a8
push esi
call fcn.00405c9c
cmp dword [ebp + 8], 0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
je 0x406489
push str..
push esi
call ebx
jmp 0x40648f
push edi
call fcn.00405f44
cmp word [edi], 0
jne 0x40649f
cmp word [0x4268a8], 0x5c
jne 0x4064a7
push 0x4082b0
push edi
call ebx
push edi
call dword [sym.imp.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 0x40656e
cmp word [ebp - 0x22c], 0x2e
jne 0x4064f2
cmp word [ebp - 0x22a], 0
je 0x406551
cmp word [ebp - 0x22a], 0x2e
jne 0x4064f2
cmp word [ebp - 0x228], 0
je 0x406551
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00405c9c
test byte [ebp - 0x258], 0x10
je 0x40651d
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x406551
push dword [ebp + 0xc]
push edi
call fcn.0040640e
jmp 0x406551
push dword [ebp - 4]
push edi
call fcn.00405ecd
test eax, eax
jne 0x406549
cmp dword [ebp - 4], eax
je 0x406541
push edi
push 0xfffffffffffffff1
call fcn.00404aef
push 0
push edi
call fcn.004063e2
jmp 0x406551
inc dword [0x429de8]
jmp 0x406551
push edi
push 0xfffffffffffffff2
call fcn.00404aef
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4064ca
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x40657a
xor eax, eax
mov word [ebx - 2], ax
xor esi, esi
cmp dword [ebp + 8], esi
je 0x4065cd
cmp dword [ebp - 8], esi
je 0x4065bd
push edi
call fcn.00405d6f
test eax, eax
je 0x4065cd
push edi
call fcn.00405f15
mov eax, dword [ebp - 4]
or eax, 1
push eax
push edi
call fcn.00405ecd
test eax, eax
jne 0x4065c5
cmp dword [ebp - 4], esi
je 0x4065bd
push edi
push 0xfffffffffffffff1
call fcn.00404aef
push esi
push edi
call fcn.004063e2
jmp 0x4065cd
inc dword [0x429de8]
jmp 0x4065cd
push edi
push 0xffffffffffffffe5
call fcn.00404aef
pop esi
pop edi
pop ebx
leave
ret 8
Function at 0x4065d4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x4278ac], 0
jne 0x406612
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 0x4065e8
mov dword [ecx*4 + 0x4278a8], eax
inc ecx
cmp ecx, 0x100
jl 0x4065e3
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x40663f
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 + 0x4278a8]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406620
not eax
pop ebp
ret 0xc
Function at 0x2aa01671
Capabilities:
Check os version
Create process on windows
Delete file
Encode data using xor
Get common file path
Get file size
Read file on windows
Shutdown system
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x2aa01110]
push ebx
push esi
mov dword [esp + 0x220], eax
push edi
xor eax, eax
lea ecx, [ecx]
xor byte [eax + 0x2aa02608], 0x9f
inc eax
cmp eax, 0x730
jl 0x2aa01691
push 0x104
lea eax, [esp + 0x14]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push 0x80
push 3
push 0
push 3
push 0x10000000
push 0x2aa01134
call ebx
cmp eax, 0xffffffff
jne 0x2aa01734
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jbe 0x2aa01746
mov ebx, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
push 0x2aa01168
call ebx
test ax, ax
jne 0x2aa0172c
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 1
push 0
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x2aa01160
push 0
call esi
push 0x3e8
call edi
push 0x2aa01168
call ebx
test ax, ax
je 0x2aa01705
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2aa01168
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
push 0x2710
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
mov edi, eax
push 0x2aa02608
push edi
call sub.CRTDLL.dll_sprintf
mov edx, 0x2aa02608
add esp, 0x30
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x2aa01776
lea edx, [esp + 0x118]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edi, [esp + 0x118]
dec edi
jmp 0x2aa017a0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x2aa017a0
mov eax, dword [0x2aa01154]
mov ecx, dword [0x2aa01158]
mov dx, word [0x2aa0115c]
push 0
push 0
push 3
mov dword [edi], eax
mov al, byte [0x2aa0115e]
push 0
mov dword [edi + 4], ecx
push 3
push 0x80000000
lea ecx, [esp + 0x130]
mov word [edi + 8], dx
push ecx
mov byte [edi + 0xa], al
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x2aa0184c
xor eax, eax
push eax
mov ecx, 0x41
lea edi, [esp + 0x14]
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
push 0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [esp + 0x10]
push edx
push edi
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
call fcn.2aa01180
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.2aa01220
call fcn.2aa01470
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4047a0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406cb4
test esi, esi
jne 0x4047d6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406e1c
jmp 0x4047f4
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404684
mov edi, eax
test esi, esi
je 0x4047f4
cmp dword [ebx], 0
je 0x4047f4
dec esi
jmp 0x4047dd
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405a60
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405e4c
mov byte [esp], al
cmp byte [esp], 0
jne 0x405be9
test edi, edi
je 0x405be9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405b20
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405afb
cmp edi, 0xffffffff
je 0x405abf
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405abf
mov byte [esp], 0
jmp 0x405be9
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405afb
test ebx, ebx
jne 0x405af4
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.004025a0
test eax, eax
jne 0x405af4
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405be9
pause
dec ebp
test ebp, ebp
jg 0x405aa4
cmp edi, 0xffffffff
je 0x405b20
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405b1e
mov byte [esp], 0
jmp 0x405be9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405a6e
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.004025a0
cmp ebx, eax
jne 0x405b20
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405c5c
mov edx, eax
mov ebx, dword [0x4de8c8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405b87
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405b85
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405b87
xor edi, edi
cmp byte [esp], 0
je 0x405bb0
mov ebx, dword [esi]
test bl, 1
jne 0x405bc9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.004025a0
cmp ebx, eax
jne 0x405b8d
mov byte [esp + 1], 1
jmp 0x405bc9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.004025a0
cmp ebx, eax
jne 0x405bb0
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405b3a
cmp byte [esp], 0
je 0x405be9
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406964
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4de050], 0
je 0x4069c5
cmp word [0x4de32c], 0xd7b2
jne 0x40698d
cmp dword [0x4de334], 0
jbe 0x40698d
mov eax, 0x4de328
call dword [0x4de344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4069f0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4db028], 0
jne 0x4069e1
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406b70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x4db02c], 0
je 0x406b9b
mov edx, edi
mov eax, esi
call dword [0x4db02c]
mov ebx, eax
jmp 0x406bac
mov eax, 8
call fcn.004043b8
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x4de051], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406b38
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x406be1
mov edx, 8
mov eax, ebx
call fcn.004043d4
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x408d08
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x408e6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406cb4
cmp si, word [0x4db7dc]
jb 0x408da0
cmp si, word [0x4db9dc]
ja 0x408da0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408da0
mov ebx, dword [ebp - 8]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4db7dc]
jae 0x408d7a
mov edi, ebx
dec edi
jmp 0x408d9b
cmp si, word [ebx*8 + 0x4db7dc]
jbe 0x408d8a
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408d9b
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4db7e0]
call fcn.00408c18
jmp 0x408da0
cmp edi, dword [ebp - 8]
jae 0x408d64
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x408e4f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x408e4f
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004076b8
push dword [ebp - 0x160]
push 0x408e88
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004076b8
push dword [ebp - 0x164]
push 0x408e98
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004076b8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004078f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e74
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406d14
ret