joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d9070
Capabilities:
Get geographical location

Disassembly:
mov eax, dword [0x6bd02c]
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
test eax, eax
jne 0x4d90b8
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d909c
mov eax, 1
jmp 0x4d90b3
push 0
push 0
push 1
push 0
call esi
test eax, eax
je 0x4d9198
mov eax, 2
mov dword [0x6bd02c], eax
cmp eax, 2
jne 0x4d90d8
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x18]
push ecx
push edx
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 1
jne 0x4d91aa
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x4d90f3
mov ecx, dword [0x6bcaf8]
mov dword [esp + 0x24], ecx
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
push 0
push 0
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edi, eax
test edi, edi
jne 0x4d9112
pop edi
pop esi
pop ebp
pop ebx
ret
lea edx, [edi + edi]
push edx
call fcn.004d1200
mov esi, eax
add esp, 4
test esi, esi
jne 0x4d9129
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4d918f
mov eax, dword [esp + 0x20]
push 0
test eax, eax
push 0
jne 0x4d9170
mov eax, dword [esp + 0x2c]
push 0
push 0
push 0xffffffffffffffff
push esi
push 0x220
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4d918f
push esi
call fcn.004d12d0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
push eax
push ecx
push 0xffffffffffffffff
push esi
push 0x220
push edx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
jne 0x4d919f
push esi
call fcn.004d12d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call fcn.004d12d0
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4d9480
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4d963e
push 0x3d
push edi
call fcn.004d97f0
mov esi, eax
add esp, 8
test esi, esi
je 0x4d963e
cmp edi, esi
je 0x4d963e
mov dl, byte [esi + 1]
mov ecx, dword [0x6bcb34]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x6bcb30]
cmp eax, ecx
jne 0x4d94d7
push eax
call fcn.004d9710
add esp, 4
mov dword [0x6bcb30], eax
test eax, eax
jne 0x4d9552
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4d94fe
mov eax, dword [0x6bcb38]
test eax, eax
je 0x4d94fe
call fcn.004d8770
test eax, eax
je 0x4d954d
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x4d950a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.004d1200
add esp, 4
mov dword [0x6bcb30], eax
test eax, eax
je 0x4d963e
mov dword [eax], 0
mov eax, dword [0x6bcb38]
test eax, eax
jne 0x4d954d
push 4
call fcn.004d1200
add esp, 4
mov dword [0x6bcb38], eax
test eax, eax
je 0x4d963e
mov dword [eax], 0
mov eax, dword [0x6bcb30]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.004d9690
mov esi, eax
add esp, 8
test esi, esi
jl 0x4d964f
cmp dword [ebx], 0
je 0x4d964f
test ebp, ebp
je 0x4d9647
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.004d12d0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x4d95a9
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x4d9598
lea eax, [esi*4]
push eax
push ebx
call fcn.004d0fe0
add esp, 8
test eax, eax
je 0x4d95c3
mov dword [0x6bcb30], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4d9636
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.004d1200
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4d9636
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.004d12d0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x4d95c7
test ebp, ebp
jne 0x4d9636
test esi, esi
jge 0x4d9659
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.004d0fe0
add esp, 8
test eax, eax
je 0x4d963e
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x6bcb30], eax
jmp 0x4d95c7
Function at 0x4d9930
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, dword [esp + 0xc]
push esi
mov ecx, dword [esp + 0xc]
mov eax, dword [eax]
mov esi, dword [ecx]
mov edx, esi
dec esi
test edx, edx
je 0x4d996a
mov edx, dword [esp + 8]
xor ecx, ecx
mov cl, byte [edx]
inc edx
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5068a8]
xor ecx, eax
mov eax, ecx
mov ecx, esi
dec esi
test ecx, ecx
jne 0x4d9948
pop esi
ret

Function at 0x4db9c0
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [esp + 4]
lea edx, [esp + 8]
jmp 0x4db9d0
push edx
push ecx
push 0x200
push 0x6bd6f8
call fcn.004ea1c0
add esp, 0x10
mov byte [0x6bd8f7], 0
call fcn.004dc040
push 0x6bd6f8
push 0x4f4a90
call fcn.004dbf70
add esp, 8
push 0x4f475c
call fcn.004dbf70
add esp, 4
push 1
call fcn.004dbc70
add esp, 4
call fcn.004db970
mov edx, str.ERROR
mov ecx, 0x6bd6f8
push 0x10
call fcn.004de270
jmp fcn.004db9a0

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

Disassembly:
push esi
mov esi, ecx
test edx, edx
je 0x4dba81
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4dba81
test al, 1
je 0x4dba81
and al, 0xfe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
ret

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

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
xor edi, edi
test eax, eax
mov ebx, edx
mov esi, ecx
jle 0x4dbae7
mov ebp, dword [esp + 0x14]
push edi
push ebp
push ebx
push esi
call fcn.004db920
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4dbac9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4dbadb
mov eax, dword [esp + 0x18]
inc edi
cmp edi, eax
jl 0x4dbaa6
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret 8

Function at 0x4dbc70
Capabilities:
Write file on windows

Disassembly:
push ecx
push 0x6bd908
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x6bdbb0]
test eax, eax
je 0x4dbce1
cmp dword [0x507650], 0xffffffff
jne 0x4dbcb6
call fcn.004dbd20
cmp eax, 0xffffffff
mov dword [0x507650], eax
jne 0x4dbca9
mov dword [0x6bdbb0], 0
pop ecx
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [0x6bdbb0]
mov edx, dword [0x6bdbac]
lea eax, [esp]
push 0
push eax
mov eax, dword [0x507650]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [0x6bdbb0], 0
mov eax, dword [esp + 8]
test eax, eax
je 0x4dbd04
mov eax, dword [0x507650]
cmp eax, 0xffffffff
je 0x4dbd04
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x507650], 0xffffffff
push 0x6bd908
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ecx
ret
Function at 0x4dbd20
Capabilities:
Clear file content
Get file size
Get session user name

Disassembly:
mov eax, dword [0x50764c]
sub esp, 0x15c
test eax, eax
push ebx
push ebp
push esi
push edi
je 0x4dbda1
lea ecx, [esp + 0x68]
call fcn.004dc240
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x18], 0x20
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4dbd5c
mov byte [esp + 0x14], al
lea ecx, [esp + 0x34]
call fcn.004dbeb0
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x14]
mov edx, eax
and edx, 0xffff
shr eax, 0x10
push edx
push eax
mov eax, dword [esp + 0x4c]
lea edx, [esp + 0x70]
and eax, 0xffff
push eax
push ecx
push edx
push str._s_s_02u_02u_02u.ERR
push 0x104
push 0x6bd920
call fcn.004db920
add esp, 0x20
mov ecx, dword [0x50764c]
or ebp, 0xffffffff
xor ebx, ebx
test ecx, ecx
sete bl
cmp ebx, 2
jge 0x4dbe8a
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push 0x6bd920
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4dbe73
push 0x5c
push 0x6bd920
call fcn.004ce000
mov edx, eax
add esp, 8
test edx, edx
jne 0x4dbdfc
mov edx, 0x6bd920
mov eax, dword [0x507654]
mov ecx, 0x40
mov dword [esp + 0x68], eax
xor eax, eax
lea edi, [esp + 0x6c]
lea esi, [esp + 0x68]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x10]
mov esi, edi
mov edx, ecx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x68]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x6bd920
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebx
cmp ebx, 2
rep movsb byte es:[edi], byte [esi]
jl 0x4dbdba
jmp 0x4dbe8a
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0x10000
jbe 0x4dbe8a
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword [0x50764c], 0
pop ebx
add esp, 0x15c
ret
Function at 0x4dbeb0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x110
xor eax, eax
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0xd
mov edi, ebp
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4dbf64
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
je 0x4dbf64
push ebx
push 4
push 0x1000
push esi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ebx, eax
lea eax, [esp + 0x1c]
push ebx
push esi
push 0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4dbf55
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push 0x4fac04
push ebx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4dbf55
mov ecx, dword [esp + 0x14]
cmp ecx, 0x34
jb 0x4dbf41
mov ecx, 0x34
mov esi, dword [esp + 0x10]
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x110
ret

Function at 0x4dc040
Capabilities:
Get hostname
Get session user name

Disassembly:
sub esp, 0xd0
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
lea ecx, [esp]
lea edx, [esp + 0x50]
push ecx
push edx
mov dword [esp + 8], 0x40
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x4dc071
mov byte [esp + 0x50], al
lea eax, [esp + 4]
lea ecx, [esp + 0x90]
push eax
push ecx
mov dword [esp + 0xc], 0x40
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x4dc097
mov byte [esp + 0x90], al
lea ecx, [esp + 0x1c]
call fcn.004dbeb0
mov edx, dword [esp + 0x16]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x12]
and edx, 0xffff
push 0x6bda28
and eax, 0xffff
push edx
mov edx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
mov ecx, 0x64
cdq
idiv ecx
mov eax, dword [esp + 0x1e]
lea ecx, [esp + 0x64]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x26]
and edx, 0xffff
push edx
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, eax
lea edx, [esp + 0xb4]
and ecx, 0xffff
push edx
shr eax, 0x10
push ecx
push eax
mov eax, dword [esp + 0x5c]
mov edx, eax
and edx, 0xffff
shr eax, 0x10
push edx
push eax
push str._r_n_______________________________________________________r_nPROGRAM_VERSION:__d._d._d._d_r_nCOMPUTER_NAME:__s_r_nUSER_NAME:_t__s_r_nTIME:__02u__02u__02u__02u:_02u:_02u._3d_r_nINFO:__s_r_n_r_n
call fcn.004dbf70
add esp, 0x3c
add esp, 0xd0
ret
Function at 0x4dc160
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
mov edi, ecx
test edi, edi
jne 0x4dc17d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
mov al, byte [edi]
mov esi, edi
test al, al
je 0x4dc228
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x4dc1a7
cmp al, 0x5c
je 0x4dc1a7
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4dc19b
mov eax, esi
sub eax, edi
add eax, 2
cmp eax, 0x105
jb 0x4dc1ba
mov eax, 0x105
push eax
lea eax, [esp + 0x14]
push edi
push eax
call sub.Storm.dll_Ordinal_501
cmp eax, 0x104
jae 0x4dc21b
lea ecx, [esp + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4dc1e5
cmp byte [esi], 0
je 0x4dc228
jmp 0x4dc203
call ebx
cmp eax, 0xb7
je 0x4dc1f3
cmp eax, 5
jne 0x4dc21b
lea edx, [esp + 0x10]
push edx
call ebp
cmp eax, 0xffffffff
je 0x4dc21b
test al, 0x10
je 0x4dc21b
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4dc195
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x108
ret

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

Disassembly:
push ebx
push ebp
mov ebp, ecx
push esi
cmp ebp, 0xa
push edi
jbe 0x4dc640
mov ebp, 0xa
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
call esi
test ebp, ebp
mov edi, eax
jne 0x4dc657
mov ebx, 1
mov ebp, ebx
mov edx, ebp
mov ecx, ebx
call fcn.004dc690
inc ebx
cmp ebx, ebp
ja 0x4dc685
call esi
sub eax, edi
cmp eax, 0xa
jae 0x4dc677
call esi
sub eax, edi
cmp eax, 0xa
jb 0x4dc66e
mov edx, ebp
mov ecx, ebx
call fcn.004dc690
inc ebx
cmp ebx, ebp
jbe 0x4dc665
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4dc690
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push edi
mov edi, edx
test edi, edi
je 0x4dc72f
push esi
push ebx
xor esi, esi
mov bl, byte [esi + 0x6be448]
xor eax, eax
mov al, byte [esi + 0x6bdbc8]
mov edx, ebx
and edx, 0xff
add esi, 4
sub eax, edx
imul eax, ecx
cdq
idiv edi
add al, bl
mov bl, byte [esi + 0x6be445]
mov byte [esi + 0x6be044], al
xor eax, eax
mov al, byte [esi + 0x6bdbc5]
mov edx, ebx
and edx, 0xff
sub eax, edx
imul eax, ecx
cdq
idiv edi
add al, bl
mov bl, byte [esi + 0x6be446]
mov byte [esi + 0x6be045], al
xor eax, eax
mov al, byte [esi + 0x6bdbc6]
mov edx, ebx
and edx, 0xff
sub eax, edx
imul eax, ecx
cdq
idiv edi
add al, bl
cmp esi, 0x400
mov byte [esi + 0x6be046], al
jl 0x4dc69f
push 0x100
xor edx, edx
mov ecx, 0x6be048
call fcn.004def20
pop ebx
pop esi
pop edi
ret
Function at 0x4de6f0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
xor ax, ax
push esi
mov al, dl
mov byte [esp + 4], dl
cmp ax, word [ecx]
jb 0x4de705
mov byte [esp + 4], 0
mov edx, dword [esp + 4]
mov esi, dword [esp + 0x10]
and edx, 0xff
lea eax, [ecx + edx*8 + 6]
movzx dx, byte [ecx + edx*8 + 6]
mov word [esi], dx
mov esi, dword [esp + 0x14]
movzx dx, byte [eax + 1]
mov word [esi], dx
mov esi, dword [esp + 0x18]
mov dx, word [ecx + 2]
mov word [esi], dx
mov esi, dword [esp + 0x1c]
mov dx, word [ecx + 4]
mov word [esi], dx
mov edx, dword [esp + 0xc]
movzx si, byte [eax + 3]
mov word [edx + 2], si
movzx si, byte [eax + 2]
mov eax, dword [eax + 4]
test eax, 0x80000000
je 0x4de769
and eax, 0x7fffffff
add esi, 0x100
add eax, ecx
mov word [edx], si
mov dword [edx + 4], eax
pop esi
pop ecx
ret 0x14

Function at 0x4e70a0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
lea eax, [esp + 0xc]
push ebx
push ebp
push esi
push edi
mov edi, ecx
push eax
call fcn.004e0450
lea esi, [edi + 4]
lea edx, [esp + 0x1c]
mov ecx, esi
call fcn.004e03f0
test eax, eax
jne 0x4e70cd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov cx, word [esi]
mov dx, word [edi + 8]
mov ax, word [edi + 6]
mov word [esp + 0x24], cx
mov cx, word [edi + 0xa]
mov word [esp + 0x28], dx
mov word [esp + 0x2a], cx
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x24]
mov word [esp + 0x26], ax
call fcn.004e03f0
test eax, eax
jne 0x4e710e
mov eax, 6
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp word [edi + 0x22], 6
jne 0x4e7162
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 0x24]
mov ecx, dword [edi + 0x18]
mov ebp, dword [esp + 0x1c]
sub eax, esi
mov dword [esp + 0x18], ebp
inc eax
and ecx, 0x2000000
je 0x4e7137
xor ebx, ebx
jmp 0x4e7140
xor ebx, ebx
mov bx, word [0x6be9dc]
add ebx, 2
test ecx, ecx
mov dword [esp + 0x14], ebx
je 0x4e7159
mov dx, word [0x6be9b4]
mov word [esp + 0x10], dx
jmp 0x4e71b2
mov cx, word [0x6bea28]
jmp 0x4e71ad
mov eax, dword [esp + 0x2a]
mov esi, dword [esp + 0x26]
mov ecx, dword [edi + 0x18]
mov ebp, dword [esp + 0x1e]
sub eax, esi
mov dword [esp + 0x18], ebp
inc eax
and ecx, 0x2000000
je 0x4e7184
xor edx, edx
jmp 0x4e718d
xor edx, edx
mov dx, word [0x6be9f8]
lea ebx, [edx + 2]
test ecx, ecx
mov dword [esp + 0x14], ebx
je 0x4e71a6
mov dx, word [0x6be9b4]
mov word [esp + 0x10], dx
jmp 0x4e71b2
mov cx, word [0x6be9f0]
mov word [esp + 0x10], cx
movsx edx, si
mov ecx, ebx
and ecx, 0xffff
movsx ebx, bp
lea ebp, [ecx + edx]
cmp ebx, ebp
jg 0x4e71d4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
movsx eax, ax
add eax, edx
sub eax, ecx
cmp ebx, eax
jl 0x4e71ec
mov eax, 2
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ecx, edi
call fcn.004e6c60
add eax, dword [esp + 0x14]
add esi, eax
mov eax, dword [esp + 0x18]
cmp ax, si
jge 0x4e720f
mov eax, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
add si, word [esp + 0x10]
xor ecx, ecx
pop edi
cmp ax, si
pop esi
setge cl
dec ecx
pop ebp
and ecx, 0xfffffffe
pop ebx
add ecx, 5
mov eax, ecx
add esp, 0x20
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d004]
jne 0x40100a
repz ret
jmp fcn.004015e1

Function at 0x40541b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42d004]
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.00403efa
and dword [ebp - 0x14], 0
cmp dword [0x42fd68], 0
mov dword [ebp - 0x18], eax
jne 0x4054ce
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405576
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405576
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42fd68], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42fd6c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42fd70], eax
call edi
push eax
call esi
mov dword [0x42fd78], eax
test eax, eax
je 0x4054ce
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42fd74], eax
mov eax, dword [0x42fd74]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405527
cmp dword [0x42fd78], ecx
je 0x405527
push eax
call esi
push dword [0x42fd78]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405527
test ebx, ebx
je 0x405527
call edi
test eax, eax
je 0x40551e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40551e
test byte [ebp - 8], 1
jne 0x405527
or dword [ebp + 0x10], 0x200000
jmp 0x40555a
mov eax, dword [0x42fd6c]
cmp eax, dword [ebp - 0x18]
je 0x40555a
push eax
call esi
test eax, eax
je 0x40555a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40555a
mov eax, dword [0x42fd70]
cmp eax, dword [ebp - 0x18]
je 0x40555a
push eax
call esi
test eax, eax
je 0x40555a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42fd68]
call esi
test eax, eax
je 0x405576
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405578
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401000
leave
ret
Function at 0x429640
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x804
mov eax, dword [0x42d004]
xor eax, esp
mov dword [esp + 0x800], eax
mov eax, dword [0x81e930]
imul eax, eax, 0x343fd
cmp dword [0x820da4], 0x139e
mov dword [0x81e930], eax
jne 0x429681
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PrepareTape]
mov eax, dword [0x81e930]
add eax, 0x269ec3
push esi
mov dword [0x81e930], eax
movzx esi, word [0x81e932]
and esi, 0x7fff
cmp dword [0x820da4], 0x8e7
jne 0x4296b6
push 0
lea eax, [esp + 8]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ecx, dword [esp + 0x804]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00401000
add esp, 0x804
ret

Function at 0x429700
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
test ebx, ebx
jle 0x429714
call fcn.00429640
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jl 0x429707
pop esi
cmp ebx, 0x2d
jne 0x42972e
mov dword [0x820db0], 0xa62e7790
mov dword [0x820db4], 0xffffffff
ret

Function at 0x429730
Capabilities:
Create pipe

Disassembly:
mov eax, dword [0x42e1e8]
sub esp, 0x14
push ebx
mov ebx, dword [0x820da4]
push edi
mov edi, dword [0x81e934]
call fcn.004296d0
cmp dword [0x820da4], 0x2f
jne 0x42978a
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00429700
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x429aa0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1818
call fcn.00409fb0
mov eax, dword [0x42d004]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
jmp 0x429ac9
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xbbe0f4a
jge 0x429b71
cmp dword [0x820da4], 0xa5f
jne 0x429b15
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
lea ecx, [ebp - 0x818]
push ecx
lea edx, [ebp - 0xc]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
lea edx, [ebp - 0x1018]
push edx
push str.zayekezipusunagozisanuhima
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
cmp dword [ebp - 4], 0x84620b
jne 0x429b3a
mov eax, dword [0x42f008]
mov dword [0x820da4], eax
mov ecx, dword [0x820da4]
add ecx, 0xa231
mov dword [0x820da4], ecx
cmp dword [0x820da4], 0x141
jne 0x429b6c
push str.wucusipeyekexe_zelisapecuyozabozecaxufer_miweyumeriwosizupuyubahu_regorekuzet_begazixezibunodumekacefasuhato
lea edx, [ebp - 0x1818]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov dword [0x4302a8], 0xec58acac
mov dword [0x4302ac], 0xffffffff
jmp 0x429ac0
call fcn.004297a0
jmp dword [0x81e934]