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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4b5040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00477d6a
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00477d6a
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x47c9ae
cmp word [ecx], dx
je 0x47c9ae
mov eax, dword [0x4a057c]
push edi
dec eax
push eax
push 0x4a0468
call fcn.0047cb27
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x47ca21
cmp word [eax], dx
je 0x47ca21
mov eax, dword [edi]
test eax, eax
je 0x47c9d2
cmp word [eax], dx
je 0x47c9d2
lea eax, [ebp - 0x10]
push eax
call fcn.0047cb88
jmp 0x47c9db
lea eax, [ebp - 0x10]
push eax
call fcn.0047ce83
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x47ca4b
mov eax, dword [0x4a0464]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4a0158
call fcn.0047cb27
add esp, 0xc
test al, al
je 0x47ca4b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x47ca16
cmp word [eax], di
je 0x47ca16
lea eax, [ebp - 0x10]
push eax
call fcn.0047cb88
pop ecx
jmp 0x47ca4d
lea eax, [ebp - 0x10]
push eax
call fcn.0047ce83
jmp 0x47ca13
mov eax, dword [edi]
test eax, eax
je 0x47ca38
cmp word [eax], dx
je 0x47ca38
lea eax, [ebp - 0x10]
push eax
call fcn.0047cfc5
pop ecx
jmp 0x47ca4b
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x47cb16
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0047d0b7
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x47cb16
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x47cb16
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x47cb16
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x47caa3
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0047882c
test ebx, ebx
je 0x47cb11
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0047882c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x47cb16
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x47cb16
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0048449b
add esp, 0x10
xor eax, eax
inc eax
jmp 0x47cb18
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00461246
leave
ret
Function at 0x47d1bd
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00477d6a
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x47d22c
cmp esi, dword [ebp - 4]
je 0x47d227
cmp dword [ebp + 0xc], 0
je 0x47d227
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x47d204
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.0047d286
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x47d22e
xor eax, eax
inc eax
jmp 0x47d22e
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x47d5d5
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4b5040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x47d620
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0047d74b
test al, al
jne 0x47d61a
sub edx, 2
cmp edx, edi
jne 0x47d600
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x47d642
lea eax, [edi + 2]
cmp edx, eax
je 0x47d642
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0047d521
add esp, 0x10
jmp 0x47d73c
push esi
lea ecx, [ebp - 0x255]
call fcn.0047d74b
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47d685
push dword [ebp - 0x25c]
jmp 0x47d632
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x47d6c2
cmp word [ebp - 0x226], 0
je 0x47d6e3
cmp word [ebp - 0x226], ax
jne 0x47d6c2
cmp word [ebp - 0x224], 0
je 0x47d6e3
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0047d521
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x47d72f
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x47d69c
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x47d717
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x47d73c
push 0x47d770
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00474cc0
add esp, 0x10
jmp 0x47d70c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00461246
leave
ret
Function at 0x47e746
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x47e757
pop esi
ret
push ebx
push edi
push esi
call fcn.0047e794
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00439f80
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x47e77f
push ebx
push esi
push edi
call fcn.00462360
add esp, 0xc
push 0
call fcn.0045d230
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x47e7cb
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047e7d6

Function at 0x4805ee
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4b5040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x480631
call fcn.0046dd7c
mov dword [eax], 0xf
call fcn.0045fb74
mov dword [eax], 0xd
call fcn.00479792
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00461246
leave
ret
test eax, eax
jne 0x480638
inc eax
jmp 0x480625
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x480623
xor eax, eax
cmp ecx, 1
setne al
jmp 0x480625
Function at 0x496c00
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x4b5040]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 4], 0
je 0x496c66
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x496c6e
mov bl, 1
cmp byte [ebp + 0xc], 0
je 0x496c50
cmp byte [esi + 4], 0
je 0x496c6a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461246
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, dword [esi]
jmp 0x496c24
mov eax, dword [esi]
jmp 0x496c44
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 4], 0
je 0x496c94
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x496c98
xor ebx, ebx
jmp 0x496c50
mov eax, dword [esi]
jmp 0x496c80
mov dword [ebp - 0x14], 0xffffffff
cmp byte [esi + 4], 0
je 0x496cba
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov bl, 1
jmp 0x496c50
mov eax, dword [esi]
jmp 0x496cab
Function at 0x496cc0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xb0
mov edi, edx
mov dword [esp + 0xc], ecx
mov eax, dword [0x4b5040]
xor eax, ebp
mov dword [esp + 0xa8], eax
mov dword [esp + 0x20], 0xa
mov al, byte [0x4b9a1e]
test al, al
jne 0x496edb
xor ebx, ebx
dec ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], ebx
mov dword [esp + 0xa0], ebx
lea esi, [esp + 0x50]
mov ecx, edi
push esi
call fcn.0041b340
cmp byte [esi + 0xb], 0
js 0x496da6
mov eax, dword [esp + 0x58]
mov dword [esp + 0xa0], eax
movq xmm0, qword [esp + 0x50]
movq qword [esp + 0x98], xmm0
lea esi, [esp + 0x8c]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
xor ebx, ebx
mov ecx, edi
push ebx
push esi
call fcn.00411f60
pxor xmm0, xmm0
movq qword [esp + 0x84], xmm0
pxor xmm0, xmm0
movdqu xmmword [esp + 0x74], xmm0
mov dword [esp + 0x50], 0x3c
mov dword [esp + 0x54], 0x40
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], str.runas
cmp byte [esp + 0xa3], 0
js 0x496dd6
lea ecx, [esp + 0x98]
jmp 0x496ddd
lea ecx, [esp + 0x98]
push dword [esp + 0x54]
push dword [esp + 0x54]
call fcn.00409e10
cmp byte [esp + 0x5b], 0
jns 0x496d40
push dword [esp + 0x50]
call fcn.0045e41e
add esp, 4
jmp 0x496d40
mov ecx, dword [esp + 0x98]
mov al, byte [ebp + 8]
mov dword [esp + 0x60], ecx
cmp byte [esp + 0x97], 0
jns 0x496df5
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], ebx
xor al, 1
movzx eax, al
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], ebx
lea eax, [esp + 0x50]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x496e78
cmp byte [ebp + 0xc], 0
je 0x496e71
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea esi, [esp + 0x10]
push 0x9e
push str....._baseprocesslaunch_win.cc
push str.LaunchElevatedProcess
push esi
call fcn.00440e50
add esp, 0x10
mov ecx, edi
push 0
push esi
call fcn.00447150
push 0xffffffffffffffff
push dword [esp + 0x8c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, edi
call fcn.00449c10
mov ebx, dword [esp + 0x88]
mov ecx, dword [esp + 0xc]
push ebx
call fcn.0041a960
cmp byte [esp + 0x97], 0
jns 0x496e9b
push dword [esp + 0x8c]
call fcn.0045e41e
add esp, 4
cmp byte [esp + 0xa3], 0
jns 0x496eb4
push dword [esp + 0x98]
call fcn.0045e41e
add esp, 4
mov dword [esp + 0x20], 0xa
mov al, byte [0x4b9a1e]
test al, al
jne 0x496efe
mov ecx, dword [esp + 0xa8]
xor ecx, ebp
call fcn.00461246
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
movzx eax, al
lea ecx, [esp + 0x50]
mov dword [ecx], str.LaunchElevatedProcess
lea edx, [esp + 0x20]
push 1
push ecx
push edx
push eax
call fcn.00440e00
add esp, 0x10
jmp 0x496cf8
movzx eax, al
mov dword [esp + 0x50], 0
lea ecx, [esp + 0x20]
push 2
lea edx, [esp + 0x54]
push edx
push ecx
push eax
call fcn.00440db0
add esp, 0x10
jmp 0x496ec5
Function at 0x497350
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x214
mov eax, dword [0x4b5040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x4b9ba4], 0
je 0x497388
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00461246
mov eax, ebx
add esp, 0x214
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [0x4b9b9c]
test edi, edi
jne 0x497456
push 0xc
call fcn.0045e423
add esp, 4
mov edi, eax
lea esi, [ebp - 0x218]
push 0x208
push 0xff
push esi
call fcn.004628e0
add esp, 0xc
push 0x104
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
dec eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov ecx, edi
push esi
call fcn.0042d080
movzx ecx, byte [edi + 0xb]
test cl, cl
mov eax, dword [edi]
mov esi, dword [edi + 4]
mov edx, ecx
mov dword [ebp - 0x21c], esi
cmovs edx, esi
mov esi, edi
mov dword [ebp - 0x220], eax
cmovs esi, eax
test edx, edx
je 0x497442
add edx, edx
test edx, edx
je 0x497442
lea eax, [edx - 2]
cmp word [esi + edx - 2], 0x5c
mov edx, eax
jne 0x497403
cmp eax, 0xfffffffe
je 0x497442
sar eax, 1
lea edx, [eax + 1]
test cl, cl
jns 0x497589
cmp dword [ebp - 0x21c], eax
jbe 0x4975a8
mov dword [edi + 4], edx
mov ecx, dword [ebp - 0x220]
mov word [ecx + eax*2 + 2], 0
mov ecx, edi
push 9
push str.debug.log
call fcn.00436b10
mov dword [0x4b9b9c], edi
test byte [0x4b701c], 1
je 0x497371
cmp byte [edi + 0xb], 0
jns 0x49746b
mov edi, dword [edi]
sub esp, 0x1c
movaps xmm0, xmmword [0x4a7450]
movups xmmword [esp + 4], xmm0
mov dword [esp], edi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4b9ba4], eax
inc eax
cmp eax, 1
ja 0x497371
lea esi, [ebp - 0x216]
push 0x206
push 0xff
push esi
call fcn.004628e0
add esp, 0xc
mov word [esi - 2], 0
lea esi, [ebp - 0x218]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jb 0x497582
mov ecx, dword [0x4b9b9c]
push esi
call fcn.0040aa80
mov ecx, dword [0x4b9b9c]
movzx eax, byte [ecx + 0xb]
test al, al
jns 0x49759a
mov eax, dword [ecx + 4]
test eax, eax
je 0x4975a5
mov edx, dword [ecx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x497522
push 1
push 0x4ad1d8
call fcn.00436b10
mov ecx, dword [0x4b9b9c]
push 9
push str.debug.log
call fcn.00436b10
mov eax, dword [0x4b9b9c]
cmp byte [eax + 0xb], 0
jns 0x497541
mov eax, dword [eax]
movaps xmm0, xmmword [0x4a7450]
sub esp, 0x1c
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x4b9ba4], eax
inc eax
cmp eax, 1
ja 0x497371
mov dword [0x4b9ba4], 0
xor ebx, ebx
jmp 0x497371
cmp eax, ecx
jae 0x4975a8
and dl, 0x7f
mov byte [edi + 0xb], dl
mov ecx, edi
jmp 0x49743b
test eax, eax
je 0x4975a5
mov edx, ecx
jmp 0x49750e
int3
int3
Function at 0x49aa80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov edx, dword [ecx]
mov esi, dword [ecx + 4]
mov eax, esi
sub eax, edx
je 0x49aab8
js 0x49aabc
shr eax, 2
movzx edi, byte [edx]
movzx ebx, al
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x4a8428]
inc edx
cmp edx, esi
jne 0x49aa96
cmp eax, dword [ecx + 0xc]
sete al
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
jmp 0x49aaad
int3

Function at 0x4282a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x17000]
push edi
jmp 0x4282ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4282c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4282b0
mov eax, 1
add ebx, ebx
jne 0x4282d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4282c8
jne 0x4282e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4282c8
xor ecx, ecx
sub eax, 3
jb 0x4282f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42836a
mov ebp, eax
add ebx, ebx
jne 0x428303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x428310
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x428334
inc ecx
add ebx, ebx
jne 0x428320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x428315
jne 0x428331
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x428315
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x428354
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x428345
jmp 0x4282b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x428354
add edi, ecx
jmp 0x4282b6
pop esi
mov edi, esi
mov ecx, 0x115
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x428372
cmp byte [edi], 3
jne 0x428372
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x428377
lea edi, [esi + 0x26000]
mov eax, dword [edi]
or eax, eax
je 0x4283e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x28000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x280c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4283a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x280cc]
or eax, eax
je 0x4283e0
mov dword [ebx], eax
add ebx, 4
jmp 0x4283c1
call dword [esi + 0x280c8]
mov ebp, dword [esi + 0x280d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ef]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42841a
sub esp, 0xffffff80
jmp 0x409ac0
Function at 0x4012f5
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x4044d8
call fcn.00401440
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x405380
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x4010ba
cmp eax, esi
jne 0x4010ad
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x4010bd
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x401094
xor esi, esi
inc esi
mov eax, dword [0x40537c]
cmp eax, esi
jne 0x4010d0
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x4010ff
mov eax, dword [0x40537c]
test eax, eax
jne 0x4010f9
mov dword [0x40537c], esi
push 0x404154
push 0x404148
call section..text
pop ecx
pop ecx
test eax, eax
je 0x4010ff
jmp 0x401223
mov dword [0x40503c], esi
mov eax, dword [0x40537c]
cmp eax, esi
jne 0x401123
push 0x404144
push 0x40413c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40537c], 2
cmp dword [ebp - 0x20], ebx
jne 0x401130
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x405384], ebx
je 0x401151
push 0x405384
call fcn.004013d4
pop ecx
test eax, eax
je 0x401151
push ebx
push 2
push ebx
call dword [0x405384]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x401223
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x4011bb
cmp cx, bx
je 0x401176
cmp dword [ebp - 0x1c], ebx
jne 0x4011bb
movzx ecx, word [eax]
cmp cx, bx
je 0x40118b
cmp cx, 0x20
ja 0x40118b
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x401176
test byte [ebp - 0x40], 1
je 0x401197
movzx ecx, word [ebp - 0x3c]
jmp 0x40119a
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x400000
call main
mov dword [0x405038], eax
cmp dword [0x40502c], ebx
jne 0x401200
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x4011cc
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x401160
cmp dword [0x40503c], ebx
jne 0x40120e
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x405038]
jmp 0x40122f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00401485
ret
call fcn.0040156f
jmp 0x401057
Function at 0x402862
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 8]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x38], 5
jne 0x402881
xor bl, bl
jmp 0x4028e6
xor ebx, ebx
lea eax, [ebp - 8]
push ebx
push 8
push eax
push ebx
push dword [edi + 0x34]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ntdll.dll_NtQueryEvent]
cmp dword [ebp - 4], ebx
jne 0x4028e4
mov ecx, edi
call fcn.004028f4
push ebx
push ebx
push edi
push 0x40294a
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, eax
mov dword [edi + 0x30], ecx
test ecx, ecx
je 0x4028e6
mov eax, dword [edi + 0x34]
push 0xffffffffffffffff
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push ebx
push eax
push 2
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
je 0x4028e4
mov ecx, edi
call fcn.004028f4
jmp 0x4028e6
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
Function at 0x10119084
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x101bd2a4], 0
mov byte [0x101bd2a8], 0
mov dword [0x101bd298], 0x19f5
mov dword [0x101bd2a0], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x101190e4
mov eax, dword [0x101bd29c]
mov ecx, dword [0x101bd298]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], eax
jmp 0x10119149
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x101bd298]
add eax, 0x1e60
mov dword [0x101bd29c], eax
mov esi, dword [0x101bd2a0]
add esi, 1
mov dword [0x101bd2a0], esi
cmp esi, 0x100
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], esi
jl 0x101190e4
mov dword [0x101bd298], 0x1a82
mov dword [0x101bd2a0], 0
xor eax, eax
mov ecx, 0x1a82
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x2c], edx
jmp 0x10119149
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, 0x100
mov dword [ebp - 0x34], eax
mov eax, edx
xor edi, edi
mov dword [ebp - 0x38], edx
mov edx, edi
mov edi, dword [ebp - 0x10]
div edi
add ecx, 0xffffe791
mov dword [0x101bd2ac], 0
mov ebx, dword [ebp - 0x34]
add ebx, 0xffffe1b1
mov dword [0x101bd29c], ebx
mov ebx, dword [0x101bd2a4]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [ebp - 0x38]
movzx ecx, byte [edi + ecx]
add ecx, ebx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add ecx, edx
mov dword [0x101bd2ac], ecx
mov eax, ecx
cdq
idiv esi
mov dword [0x101bd2a4], edx
mov ecx, dword [ebp - 0x38]
mov cl, byte [edi + ecx]
mov byte [0x101bd2a8], cl
mov esi, dword [ebp - 0x3c]
mov dword [0x101bd29c], esi
mov cl, byte [edi + edx]
mov edx, dword [ebp - 0x38]
mov byte [edi + edx], cl
mov cl, byte [0x101bd2a8]
mov esi, dword [0x101bd2a4]
mov byte [edi + esi], cl
mov esi, dword [0x101bd2a0]
add esi, 1
mov dword [0x101bd2a0], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x101190cb
mov dword [0x101bd29c], 0x2635
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret