joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015a0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x4015bc
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
ret

Function at 0x4015c0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebp
push esi
push edi
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40166f
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0x200000
jbe 0x401600
mov ebp, 0x200000
push ebp
call fcn.0041fa7e
add esp, 4
lea ecx, [esp + 0x10]
mov esi, eax
push 0
push ecx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
test ebp, ebp
jbe 0x401666
xor ecx, ecx
xor edx, edx
mov cl, byte [eax + esi]
mov dl, byte [eax + esi + 2]
lea edi, [ecx - 4]
cmp edx, edi
jne 0x401661
xor edx, edx
lea edi, [ecx - 1]
mov dl, byte [eax + esi + 4]
cmp edx, edi
jne 0x401661
xor edx, edx
lea edi, [ecx + 2]
mov dl, byte [eax + esi + 6]
cmp edx, edi
jne 0x401661
xor edx, edx
add ecx, 3
mov dl, byte [eax + esi + 8]
cmp edx, ecx
je 0x401675
inc eax
cmp eax, ebp
jb 0x401628
push esi
call fcn.0041faa7
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
ret
push esi
call fcn.0041faa7
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
ret

Function at 0x405730
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x425f78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x4333c8]
push ebx
push ebp
mov ebp, eax
inc eax
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], 0x4279fc
mov dword [esp + 0x1c], ebp
mov dword [0x4333c8], eax
fld dword [esp + 0x34]
fcomp dword [0x4279f8]
mov dword [esp + 0x28], 0
fnstsw ax
test ah, 1
je 0x40578a
mov dword [esp + 0x34], 0
jmp 0x4057a3
fld dword [esp + 0x34]
fcomp dword [0x427ec0]
fnstsw ax
test ah, 0x41
jne 0x4057a3
mov dword [esp + 0x34], 0x3f800000
mov esi, dword [ebx + 0xc]
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
lea edi, [ebx + 4]
lea edx, [esi + 1]
mov dword [esp + 0x18], ecx
push 0xffffffffffffffff
push edx
mov ecx, edi
mov dword [esp + 0x1c], eax
call fcn.00407620
mov ecx, dword [edi + 4]
mov eax, dword [esp + 0x30]
shl esi, 4
add esi, ecx
mov ecx, dword [esp + 0x34]
mov dword [esi + 8], ecx
mov ecx, ebx
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebp
call fcn.00405880
push ebp
mov ecx, ebx
call fcn.00406d80
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x40b010
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x426370
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], vtable.CBrush.0
mov eax, dword [esp + 0x50]
mov dword [esp + 0x3c], 0
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
lea ecx, [esp + 0x10]
call fcn.004225c9
mov esi, dword [esp + 0x44]
push 8
mov ecx, esi
mov edx, dword [esi]
call dword [edx + 0x24]
mov edi, eax
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00421fe6
mov ebx, eax
mov eax, dword [esp + 0x54]
sub eax, 0
je 0x40b102
dec eax
je 0x40b0d4
dec eax
je 0x40b0b9
mov eax, dword [esp + 0x48]
lea ecx, [eax + 1]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x4c]
lea edx, [ecx + 1]
add ecx, 0xa
mov dword [esp + 0x20], edx
lea edx, [eax - 3]
add eax, 5
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
jmp 0x40b12e
mov ecx, dword [esp + 0x48]
lea eax, [ecx - 1]
add ecx, 0xfffffff6
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x4c]
lea edx, [eax + 1]
mov dword [esp + 0x20], edx
jmp 0x40b118
mov eax, dword [esp + 0x48]
lea ecx, [eax + 1]
lea edx, [eax - 3]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x20], ecx
add ecx, 0xfffffff7
add eax, 5
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
jmp 0x40b12e
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x1c], ecx
add ecx, 9
lea edx, [eax + 1]
mov dword [esp + 0x20], edx
lea edx, [eax - 3]
add eax, 5
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
mov ecx, dword [esi + 4]
lea eax, [esp + 0x1c]
push 3
push eax
push ecx
call dword [sym.imp.GDI32.dll_Polygon]
push ebx
mov ecx, esi
call fcn.00421fe6
push edi
mov ecx, esi
call fcn.00421fe6
push 8
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push 1
push 0
lea ecx, [esp + 0x20]
call fcn.00422636
lea edx, [esp + 0x14]
mov ecx, esi
push edx
mov byte [esp + 0x40], 1
call fcn.00421fe6
mov ecx, dword [esp + 0x1c]
mov edi, eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x48]
push eax
push ecx
push edx
mov ecx, esi
call fcn.00422354
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
push eax
push ecx
mov ecx, esi
call fcn.004223a0
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
push edx
push eax
mov ecx, esi
call fcn.004223a0
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ecx
push edx
mov ecx, esi
call fcn.004223a0
push edi
mov ecx, esi
call fcn.00421fe6
lea ecx, [esp + 0xc]
call fcn.00422620
mov esi, vtable.CGdiObject.0
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 2
call fcn.00422620
mov dword [esp + 0xc], esi
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c], 3
call fcn.00422620
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x34
ret 0x14
Function at 0x41a1c0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040d090
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x41a28b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x41a28b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x41a23e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x41a249
or bh, 8
and edi, 0x8000000
je 0x41a264
mov eax, dword [0x436b5c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x41a28b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x41a68b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41a6af
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41a6ca
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x41ec2f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41ec71
call fcn.004246b7
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41ec71
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41ec68
xor eax, eax
jmp 0x41ec79
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041ec7f
pop edi
pop esi
pop ebx
ret 4

Function at 0x424e7c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x424eaa
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x424ec8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00424de2
jmp 0x424ec8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x424ec8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00424de2
test edi, edi
mov eax, edi
jne 0x424eb2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x41ea09
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x41ea18
pop dword [ebp - 8]
mov eax, 0x41ea18
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x4c832
push 0
mov eax, 0x5aaa598e
sub eax, 0x5a66b78a
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x77df4c19
sub ecx, 0x77df00d3
xor esi, esi
add esi, eax
mov edi, 0x462400
add edi, dword [ebp - 8]
mov edx, 0x82959867
add edx, 0x89f35e66
sub dword [ebp - 4], ebx
mov ebx, dword [edi]
xor dword [ebp - 4], esi
xor ebx, edx
sub dword [ebp - 4], esi
mov dword [esi], ebx
xor dword [ebp - 4], 0x869f196e
add esi, 4
add edi, 4
loop 0x41ea6e
add eax, 0x11feb
xor ebx, ebx
add ebx, eax
add eax, 0x16ea913f
add eax, 0xe9156ec6
mov ecx, 0x400000
add ecx, dword [ebp - 8]
call ebx
leave
ret

Function at 0x427eaa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4540d0]
jne 0x427eb4
repz ret
jmp fcn.00429e94
Function at 0x4b5260
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6c000]
push edi
jmp 0x4b527a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b5281
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b5270
mov eax, 1
add ebx, ebx
jne 0x4b5293
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b52a4
jne 0x4b52c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b52c3
dec eax
add ebx, ebx
jne 0x4b52b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b5288
add ebx, ebx
jne 0x4b52bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b5315
xor ecx, ecx
sub eax, 3
jb 0x4b52db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b534a
sar eax, 1
mov ebp, eax
jmp 0x4b52e6
add ebx, ebx
jne 0x4b52e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b52b4
inc ecx
add ebx, ebx
jne 0x4b52f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b52b4
add ebx, ebx
jne 0x4b5301
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b52f6
jne 0x4b5312
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b52f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b5334
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b5326
jmp 0x4b5276
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b5334
add edi, ecx
jmp 0x4b5276
pop esi
mov edi, esi
mov ecx, 0x4422
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b5352
cmp byte [edi], 0x11
jne 0x4b5352
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 0x4b5357
lea edi, [esi + 0xb2000]
mov eax, dword [edi]
or eax, eax
je 0x4b53cf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb9af8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb9c10]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b5384
mov ecx, edi
jns 0x4b53b3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb9c14]
or eax, eax
je 0x4b53c9
mov dword [ebx], eax
add ebx, 4
jmp 0x4b53a1
call dword [esi + 0xb9c24]
mov ebp, dword [esi + 0xb9c18]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x4b5403
sub esp, 0xffffff80
jmp 0x45754c
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x6733376d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x564557ae
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x3d1609
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x3d1a90
call fcn.003d17b4
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, 0x3d2370
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x3d13c4
cmp eax, esi
jne 0x3d13b7
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x3d13c7
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x3d139e
xor esi, esi
inc esi
mov eax, dword [0x3d236c]
cmp eax, esi
jne 0x3d13da
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x3d1409
mov eax, dword [0x3d236c]
test eax, eax
jne 0x3d1403
mov dword [0x3d236c], esi
push 0x3d10b8
push 0x3d10ac
call fcn.003d1300
pop ecx
pop ecx
test eax, eax
je 0x3d1409
jmp 0x3d152d
mov dword [0x3d2034], esi
mov eax, dword [0x3d236c]
cmp eax, esi
jne 0x3d142d
push 0x3d10a8
push 0x3d10a0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x3d236c], 2
cmp dword [ebp - 0x20], ebx
jne 0x3d143a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x3d2374], ebx
je 0x3d145b
push 0x3d2374
call fcn.003d1729
pop ecx
test eax, eax
je 0x3d145b
push ebx
push 2
push ebx
call dword [0x3d2374]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x3d152d
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x3d14c5
cmp cx, bx
je 0x3d1480
cmp dword [ebp - 0x1c], ebx
jne 0x3d14c5
movzx ecx, word [eax]
cmp cx, bx
je 0x3d1495
cmp cx, 0x20
ja 0x3d1495
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x3d1480
test byte [ebp - 0x40], 1
je 0x3d14a1
movzx ecx, word [ebp - 0x3c]
jmp 0x3d14a4
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x3d0000
call main
mov dword [0x3d2030], eax
cmp dword [0x3d2024], ebx
jne 0x3d150a
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x3d14d6
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x3d146a
cmp dword [0x3d2034], ebx
jne 0x3d1518
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x3d2030]
jmp 0x3d1539
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.003d17f9
ret
call fcn.003d1901
jmp 0x3d1361
Function at 0x403360
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403393
call fcn.00403340
test eax, eax
je 0x403393
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 8]
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403400
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403434
call fcn.00403340
cmp eax, 7
jb 0x403434
mov edx, 7
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403440
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403473
call fcn.00403340
test eax, eax
je 0x403473
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 8]
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403570
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x79fa74]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x4035b9
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4035b9
push 0xc00
call eax
test eax, eax
jne 0x40364e
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x40364e
cmp ecx, 0x104
ja 0x40364e
cmp word [ebp + ecx*2 - 0x2d6], 0x5c
je 0x4035f2
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x2d4], ax
inc ecx
mov al, byte [str.userenv]
push esi
mov esi, str.userenv
test al, al
je 0x40364d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + ecx*2]
mov ecx, edi
inc esi
movzx eax, al
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
mov al, byte [esi]
inc esi
test al, al
jne 0x403615
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
mov al, byte [esi]
test al, al
jne 0x403612
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044bf31
mov esp, ebp
pop ebp
ret
Function at 0x408b30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x98
push 0
lea eax, [edi + 0x110]
push eax
call fcn.0044d680
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [eax + ecx]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x1010100
mov dword [ecx + 8], 0
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x408bc7
lea eax, [edi + 0x9fc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
nop word [eax + eax]
mov esi, eax
xor edi, edi
movzx eax, word [edi + 0x45d570]
lea ecx, [ebx + 2]
xor edx, edx
div ecx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x408c10
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x408bf4
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x408bf0
mov edi, dword [ebp + 8]
mov edx, 0x50
pop ebx
lea esi, [edi + 0x3bc]
nop dword [eax + eax]
mov eax, esi
mov ecx, 0x10
nop word [eax + eax]
mov word [eax], dx
lea eax, [eax + 4]
mov word [eax - 2], 0x403
sub ecx, 1
jne 0x408c60
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x408c50
mov dword [edi + 0x3b8], 0x40070000
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4