joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10056aa0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1007e51c]
mov ecx, dword [0x1007d328]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x10056ac7
mov al, byte [0x1007e51a]
pop ebp
ret
push 0x1007e51c
call fcn.1002ff22
add esp, 4
cmp dword [0x1007e51c], 0xffffffff
jne 0x10056ac0
push str.MOZ_DISABLE_WALKTHESTACK
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
add esp, 4
test eax, eax
je 0x10056b09
cmp byte [eax], 0
sete al
mov byte [0x1007e51a], al
push 0x1007e51c
call fcn.1002ff22
add esp, 4
jmp 0x10056ac0
mov al, 1
jmp 0x10056af5

Function at 0x10059d90
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
movaps xmm0, xmmword [0x1006e1a0]
movups xmmword [esp + 4], xmm0
mov dword [esp], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.kernel32.dll_CreateFileW]
sub esp, 0x1c
cmp eax, 0xffffffff
je 0x10059ed0
mov esi, eax
movaps xmm0, xmmword [0x1006e1b0]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x14], 0
call dword [sym.imp.kernel32.dll_CreateFileMappingW]
sub esp, 0x18
xor edi, edi
test eax, eax
je 0x10059eb0
mov ebx, eax
lea eax, [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
sub esp, 4
movaps xmm0, xmmword [0x1006e1c0]
movups xmmword [esp + 4], xmm0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_MapViewOfFile]
sub esp, 0x14
test eax, eax
je 0x10059ed4
mov dword [ebp - 0x3c], eax
mov edi, dword [eax + 0x3c]
lea eax, [ebp - 0x34]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
sub esp, 4
mov eax, edi
xor edx, edx
div dword [ebp - 0x18]
sub edi, edx
mov dword [ebp - 0x38], edx
lea eax, [edx + 0xf8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], edi
xor edi, edi
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 4
call dword [sym.imp.kernel32.dll_MapViewOfFile]
sub esp, 0x14
test eax, eax
je 0x10059e95
mov ecx, dword [ebp - 0x38]
mov edi, dword [eax + ecx + 8]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
sub esp, 4
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002f5c0
mov eax, edi
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
xor edi, edi
jmp 0x10059ebc
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x10059ead
Function at 0x10059ee0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov ebx, edx
mov esi, ecx
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0
push edx
call sub.version.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x10059f8d
mov edi, eax
mov dword [ebp - 0x20], esi
push eax
call sym.mozglue.dll_moz_xmalloc
add esp, 4
mov esi, eax
xor eax, eax
push edi
push eax
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x1c], esi
push esi
push edi
xor edi, edi
push edi
push ebx
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x10059fad
lea eax, [ebp - 0x18]
mov dword [eax], 0
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0x10074b7a
mov esi, dword [ebp - 0x1c]
push esi
call sub.version.dll_VerQueryValueW
test eax, eax
mov edx, esi
je 0x10059fd3
mov eax, dword [ebp - 0x18]
mov edi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov esi, dword [ebp - 0x20]
mov dword [esi], eax
mov dword [esi + 4], edi
mov dword [esi + 8], 0
push edx
call sym.mozglue.dll__aligned_free
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002f5c0
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], ecx
jmp 0x10059f79
call dword [sym.imp.kernel32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
xor eax, eax
mov esi, dword [ebp - 0x20]
mov dword [esi + 4], eax
mov dword [esi], eax
mov dword [esi + 8], ecx
mov edx, dword [ebp - 0x1c]
jmp 0x10059f70
xor eax, eax
jmp 0x10059f61

Function at 0x1005a660
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov esi, ecx
mov eax, dword [0x1007d00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x1007e704]
mov ecx, dword [0x1007d328]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1005a6dc
mov eax, dword [esi + 8]
test eax, eax
jne 0x1005a6b2
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1002f5c0
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [0x1007e700]
mov dword [ebp - 0x38], ecx
mov ebx, dword [esi + 4]
lea edi, [ebx + eax*8]
lea eax, [ebp - 0x34]
push eax
push dword [ebx]
push dword [ebp - 0x38]
push dword [ebx + 4]
call dword [sym.imp.kernel32.dll_VirtualProtect]
add ebx, 8
cmp ebx, edi
je 0x1005a699
jmp 0x1005a6c1
push 0x1007e704
call fcn.1002ff22
add esp, 4
cmp dword [0x1007e704], 0xffffffff
jne 0x1005a692
lea edi, [ebp - 0x34]
push edi
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [edi + 4]
mov dword [0x1007e700], eax
push 0x1007e704
call fcn.1002ff22
add esp, 4
jmp 0x1005a692
Function at 0x1005a820
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov ecx, dword [ecx + 0x34]
test ecx, ecx
je 0x1005a8a6
mov edi, edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 8]
and ecx, 0xfffffffc
call fcn.1005a8b0
test al, al
je 0x1005a8a6
mov dword [ebp - 0x10], ebx
push edi
push dword [esi + 0x34]
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x1005a8a6
mov edi, eax
mov ecx, eax
call fcn.1005a8b0
test al, al
je 0x1005a8a6
lea ecx, [esi + 0x18]
mov edx, edi
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.10013f40
add esp, 8
mov ecx, eax
mov al, 1
test cl, cl
jne 0x1005a8a8
cmp byte [esi + 0x14], 0
jne 0x1005a896
mov dword [esi + 0x14], 1
mov dword [esi + 0x10], 0
mov ecx, esi
mov edx, edi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.1000e4c0
xor eax, eax
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1006bb80
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp byte [0x1007e4e8], 0
je 0x1006bbba
push 0x10074c1c
push str.MOZ_SKELETON_UI_RESTARTING
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableW]
mov eax, dword [0x1007d204]
cmp eax, 0xffffffff
je 0x1006bbb1
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov byte [esi + 4], 0
mov eax, esi
pop esi
pop ebp
ret
mov byte [esi + 4], 1
mov dword [esi], 2
jmp 0x1006bbb5

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401590
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0xc08
push ebx
push ebp
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], edx
push esi
push edi
test ecx, ecx
je 0x4015db
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x4015cb
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x4015b1
jmp 0x4015d0
xor eax, eax
mov word [edi], ax
lea edx, [esp + 0x818]
mov dword [esp + 0x10], edx
xor edi, edi
xor ebp, ebp
test edx, edx
je 0x40162b
mov edi, edx
lea ecx, [edi + 2]
jmp 0x4015f0
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x4015f0
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x40160c
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.004042c0
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x40164d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x4016c0
mov esi, dword [ebx]
cmp esi, ebx
je 0x4016c0
test esi, esi
je 0x4016c0
cmp word [esi + 0x24], 2
jbe 0x4016ba
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x4016ba
cmp dword [esi + 0x18], 0
je 0x4016ba
test ebp, ebp
je 0x401675
cmp ebp, eax
jne 0x4016ba
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.004042c0
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40169a
cmp eax, dword [esi + 0x18]
jne 0x4016ba
cmp dword [esp + 0x10], 0
je 0x4016cd
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.004019c0
add esp, 8
test eax, eax
je 0x4016cd
mov esi, dword [esi]
cmp esi, ebx
jne 0x401653
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc08
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0xc08
ret
Function at 0x402550
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x7ef408]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x4026fd
cmp dword [0x7ef40c], 0
jne 0x4026e9
xor eax, eax
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov word [esp + 0x1c], ax
mov byte [esp + 0x1e], al
lea eax, [esp + 0x20]
push eax
call fcn.00401a70
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x4025a0
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x18]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + str.nkO]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
inc esi
mov byte [esp + edi + 0x18], dl
cmp esi, 0x100
jb 0x4025b0
xor esi, esi
xor edi, edi
xor edx, edx
lea eax, [esi + 1]
movzx esi, al
mov cl, byte [esp + esi + 0x18]
movzx eax, cl
add eax, edi
movzx edi, al
movzx eax, byte [esp + edi + 0x18]
mov byte [esp + esi + 0x18], al
mov byte [esp + edi + 0x18], cl
movzx eax, byte [esp + esi + 0x18]
movzx ecx, cl
add ecx, eax
movzx eax, cl
movzx eax, byte [esp + eax + 0x18]
xor al, byte [edx + 0x41d0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x4025e5
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00401a70
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402644
sub edx, esi
sar edx, 1
je 0x4026fd
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x402660
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x4026fd
xor eax, eax
push ebx
test edx, edx
je 0x402698
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x402698
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x402681
xor eax, eax
test edx, edx
je 0x4026b2
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x4026b2
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x4026a0
xor eax, eax
test edx, edx
je 0x4026cf
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x4026cf
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x4026c0
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x7ef408]
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
push 0x800
push 0
push ebp
call eax
pop edi
pop esi
pop ebp
add esp, 0x20c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x20c
ret
Function at 0x402a80
Capabilities:
64-bit execution via heavens gate

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
lea edx, [ebp + 0x10]
sub esp, 0x40
push ebx
push esi
push edi
test ecx, ecx
jle 0x402aa8
mov eax, dword [ebp + 0x10]
lea edx, [ebp + 0x18]
dec ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp + 0xc], ecx
mov dword [ebp - 0xc], eax
jmp 0x402ab6
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
test ecx, ecx
jle 0x402acf
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x14], eax
jmp 0x402add
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
test ecx, ecx
jle 0x402af6
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x1c], eax
jmp 0x402b04
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
test ecx, ecx
jle 0x402b1d
dec ecx
add edx, 8
mov dword [ebp + 0xc], ecx
mov eax, dword [edx - 8]
mov dword [ebp - 0x28], eax
mov eax, dword [edx - 4]
mov dword [ebp - 0x24], eax
jmp 0x402b2b
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, edx
mov dword [ebp - 0x30], 0
cdq
mov dword [ebp - 0x40], eax
mov eax, ecx
mov dword [ebp - 0x3c], edx
cdq
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov word [ebp - 8], fs
mov eax, 0x2b
mov fs, ax
mov dword [ebp - 4], esp
and esp, 0xfffffff0
push 0x33
call 0x402b72
add dword [esp], 5
retf
Function at 0x403100
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x7f04d0]
sub esp, 0x11c
test eax, eax
jne 0x4031fe
push ebx
push esi
push edi
push 0x100
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov word [esp + 0x2c], ax
lea eax, [esp + 0x30]
push eax
call fcn.00401a70
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x403150
xor esi, esi
mov edi, edi
mov dl, byte [esp + esi + 0x28]
mov eax, esi
and eax, 3
movzx ecx, dl
movzx eax, byte [eax + 0x41d100]
add eax, edi
add ecx, eax
movzx edi, cl
mov al, byte [esp + edi + 0x28]
mov byte [esp + esi + 0x28], al
inc esi
mov byte [esp + edi + 0x28], dl
cmp esi, 0x100
jb 0x403160
xor edi, edi
xor ebx, ebx
xor esi, esi
lea eax, [edi + 1]
movzx edi, al
mov cl, byte [esp + edi + 0x28]
movzx edx, cl
lea eax, [edx + ebx]
movzx ebx, al
movzx eax, byte [esp + ebx + 0x28]
mov byte [esp + edi + 0x28], al
mov byte [esp + ebx + 0x28], cl
movzx eax, byte [esp + edi + 0x28]
add eax, edx
movzx eax, al
movzx eax, byte [esp + eax + 0x28]
xor al, byte [esi + 0x41d104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x403195
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.00404020
pop edi
pop esi
pop ebx
test eax, eax
je 0x4031f9
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4031f9
mov dword [0x7f04d0], eax
add esp, 0x11c
ret
mov eax, dword [0x7f04d0]
add esp, 0x11c
ret
Function at 0x404020
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
sub esp, 0x808
push ebx
push ebp
push esi
push edi
xor edi, edi
mov dword [esp + 0x10], edx
xor ebp, ebp
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x40407b
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x404040
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x40405c
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.004042c0
add esp, 0xc
xor eax, eax
mov word [esp + ebp + 0x418], ax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0xc
jne 0x40409d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x40410f
mov esi, dword [ebx]
cmp esi, ebx
je 0x40410f
test esi, esi
je 0x40410f
cmp word [esi + 0x24], 2
jbe 0x404109
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x404109
cmp dword [esi + 0x18], 0
je 0x404109
test ebp, ebp
je 0x4040c5
cmp ebp, eax
jne 0x404109
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.004042c0
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x4040ea
cmp edx, dword [esi + 0x18]
jne 0x404109
cmp dword [esp + 0x14], eax
je 0x40411c
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.004019c0
add esp, 8
test eax, eax
je 0x40411c
mov esi, dword [esi]
cmp esi, ebx
jne 0x4040a3
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x808
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x808
ret

Function at 0x404320
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x7ef548
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x404449
cmp dword fs:[0xc0], eax
je 0x40434b
mov dword [0x7ef544], 1
mov eax, dword fs:[0x18]
push ebx
push esi
mov ebx, 1
mov esi, dword [eax + 0x30]
mov eax, dword [esi + 0xa4]
mov dword [0x7ef42c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x7ef430], eax
movzx edx, word [esi + 0xac]
mov dword [0x7ef434], edx
mov eax, dword [esi + 0xb0]
mov dword [0x7ef438], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x4043ab
push 0x7f
push eax
push 0x7ef43c
call fcn.004042c0
mov edx, dword [0x7ef434]
add esp, 0xc
jmp 0x4043b3
xor eax, eax
mov word [0x7ef43c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x7ef53c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x7ef53e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x7ef540], ax
mov ecx, eax
mov byte [0x7ef542], 0
cmp byte [0x7ffe0268], 0
je 0x4043fa
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x7ef542], bl
cmp ebx, 1
pop ebx
jne 0x404414
and ecx, 0xffef
mov word [0x7ef540], cx
test edx, edx
jne 0x404449
call fcn.00404320
cmp dword [0x7ef42c], 6
ja 0x404449
jb 0x404431
cmp dword [0x7ef430], 4
jae 0x404449
call fcn.00404320
cmp dword [0x7ef42c], 0xa
jae 0x404449
mov dword [0x7ef434], 1
ret

Function at 0x41c2d2
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret
Function at 0x401007
Capabilities:
Delete file
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x8106f8]
push esi
mov esi, dword [ebx + 4]
mov dword [ebp - 0x2c], eax
mov eax, dword [0x8106fc]
push edi
mov edi, dword [ebx]
xor ecx, ecx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 8]
mov dword [ebp - 0x18], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x34], 0x9e3779b9
call fcn.00401000
mov eax, dword [0x810700]
add dword [ebp - 8], 0x23f
mov dword [ebp - 0x24], eax
mov eax, dword [0x810704]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 0x20
jmp 0x40105d
xor ecx, ecx
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov eax, edi
shl eax, 4
cmp dword [0x81f954], 0xc
mov dword [ebp - 4], eax
jne 0x401087
push ecx
lea eax, [ebp - 0x38]
push eax
push ecx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [0x81f954]
cmp eax, 0xfa9
jne 0x4010a3
mov dword [0x81f950], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4010c8
push str.xuzujamasahigomurefexob
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
and dword [0x81f8a8], 0
mov eax, dword [ebp - 8]
add eax, edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
shr eax, 5
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x18], 0
mov dword [0x81f94c], 0xf4ea3dee
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
sub esi, eax
mov dword [ebp - 0xc], eax
mov eax, esi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
add eax, esi
mov dword [ebp - 0x1c], eax
mov eax, esi
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 4], eax
cmp dword [0x81f954], 0xb03
jne 0x401147
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
sub edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x34]
sub dword [ebp - 8], eax
dec dword [ebp - 0x20]
jne 0x40105b
mov dword [ebx], edi
pop edi
mov dword [ebx + 4], esi
pop esi
leave
ret
Function at 0x407005
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x80f874]
jne 0x40700f
repz ret
jmp fcn.0040b2dc

Function at 0x40a15d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004055f8
and dword [ebp - 4], 0
cmp dword [0x814944], 0
mov ebx, eax
jne 0x40a20e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40a2bf
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40a2bf
push eax
call fcn.00405586
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x814944], eax
call esi
push eax
call fcn.00405586
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x814948], eax
call esi
push eax
call fcn.00405586
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x81494c], eax
call esi
push eax
call fcn.00405586
pop ecx
mov dword [0x814954], eax
test eax, eax
je 0x40a20e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405586
pop ecx
mov dword [0x814950], eax
mov eax, dword [0x814950]
cmp eax, ebx
je 0x40a266
cmp dword [0x814954], ebx
je 0x40a266
push eax
call fcn.00405601
push dword [0x814954]
mov esi, eax
call fcn.00405601
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40a266
test edi, edi
je 0x40a266
call esi
test eax, eax
je 0x40a25d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40a25d
test byte [ebp - 0xc], 1
jne 0x40a266
or dword [ebp + 0x10], 0x200000
jmp 0x40a29f
mov eax, dword [0x814948]
cmp eax, ebx
je 0x40a29f
push eax
call fcn.00405601
pop ecx
test eax, eax
je 0x40a29f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40a29f
mov eax, dword [0x81494c]
cmp eax, ebx
je 0x40a29f
push eax
call fcn.00405601
pop ecx
test eax, eax
je 0x40a29f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x814944]
call fcn.00405601
pop ecx
test eax, eax
je 0x40a2bf
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40a2c1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret