joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004ec59
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1004ea67
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1004edc8
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1004edc8
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1004ed7d
jg 0x1004ecb5
test eax, eax
je 0x1004ed73
push 1
push 0x1000
call fcn.100514f9
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1004ecd8
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1004ed6a
push 0x8000
push ebx
call fcn.1004c53e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1004ed01
jg 0x1004ecfc
cmp ecx, 0x1000
jb 0x1004ed01
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10049731
add esp, 0x10
cmp eax, 0xffffffff
je 0x1004ed46
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1004ecfc
jl 0x1004ed2d
test ecx, ecx
jne 0x1004ecee
push dword [ebp - 0xc]
push ebx
call fcn.1004c53e
push esi
call fcn.1004c31c
add esp, 0xc
xor ebx, ebx
jmp 0x1004edd6
cmp byte [edi + 0x24], 0
je 0x1004ed5d
cmp dword [edi + 0x20], 5
jne 0x1004ed5d
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1004ed68
mov ebx, dword [edi + 0x18]
jmp 0x1004ed6a
xor ebx, ebx
push esi
call fcn.1004c31c
pop ecx
jmp 0x1004edd6
test ecx, ecx
jg 0x1004ed3f
jl 0x1004ed7d
test eax, eax
jae 0x1004ed3f
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10048d7c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1004ed9d
cmp byte [edi + 0x1c], 0
je 0x1004ed3f
jmp 0x1004edce
push ebx
call fcn.1004e7d1
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1004ed3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1004edd6
cmp byte [edi + 0x1c], 0
je 0x1004edd3
mov ebx, dword [edi + 0x18]
jmp 0x1004edd6
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10048d7c
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10056492
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10056366
Function at 0x1005a2f3
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x1007c008]
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 0x1005a33e
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.1005a650
test al, al
jne 0x1005a338
sub edx, 2
cmp edx, edi
jne 0x1005a31e
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x1005a360
lea eax, [edi + 2]
cmp edx, eax
je 0x1005a360
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.10059fba
add esp, 0x10
jmp 0x1005a45a
push esi
lea ecx, [ebp - 0x255]
call fcn.1005a650
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 0x1005a3a3
push dword [ebp - 0x25c]
jmp 0x1005a350
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 0x1005a3e0
cmp word [ebp - 0x226], 0
je 0x1005a401
cmp word [ebp - 0x226], ax
jne 0x1005a3e0
cmp word [ebp - 0x224], 0
je 0x1005a401
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.10059fba
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x1005a44d
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x1005a3ba
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x1005a435
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1005a45a
push 0x10059bbc
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.10022230
add esp, 0x10
jmp 0x1005a42a
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.10015fa5
leave
ret
Function at 0x1005b698
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1005b735
push ebx
push esi
call fcn.1005b654
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.100510f0
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1005b6e2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005b734
push edi
push eax
call fcn.1004c356
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1005b702
call fcn.1004c31c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1005b733
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100510f0
add esp, 0x20
test eax, eax
jne 0x1005b721
push edi
call fcn.1004c31c
jmp 0x1005b729
push ebx
call fcn.1004c31c
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1005b738
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1005b749
pop esi
ret
push ebx
push edi
push esi
call fcn.1005b654
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.1004c356
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1005b771
push ebx
push esi
push edi
call fcn.1001fe50
add esp, 0xc
push 0
call fcn.1004c31c
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x1005c015
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1005b9e6

Function at 0x1005f5be
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1004ceb3
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 0x1005f62d
cmp esi, dword [ebp - 4]
je 0x1005f628
cmp dword [ebp + 0xc], 0
je 0x1005f628
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1005f605
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1005f110
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1005f62f
xor eax, eax
inc eax
jmp 0x1005f62f
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1005f694
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1007c008]
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.1004ceb3
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.1004ceb3
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 0x1005f70b
cmp word [ecx], dx
je 0x1005f70b
mov eax, dword [0x100741c4]
push edi
dec eax
push eax
push 0x100740b0
call fcn.1005f633
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1005f77e
cmp word [eax], dx
je 0x1005f77e
mov eax, dword [edi]
test eax, eax
je 0x1005f72f
cmp word [eax], dx
je 0x1005f72f
lea eax, [ebp - 0x10]
push eax
call fcn.1005f016
jmp 0x1005f738
lea eax, [ebp - 0x10]
push eax
call fcn.1005f0b1
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1005f7a8
mov eax, dword [0x100740ac]
push dword [ebp - 0x14]
dec eax
push eax
push 0x10073da0
call fcn.1005f633
add esp, 0xc
test al, al
je 0x1005f7a8
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1005f773
cmp word [eax], di
je 0x1005f773
lea eax, [ebp - 0x10]
push eax
call fcn.1005f016
pop ecx
jmp 0x1005f7aa
lea eax, [ebp - 0x10]
push eax
call fcn.1005f0b1
jmp 0x1005f770
mov eax, dword [edi]
test eax, eax
je 0x1005f795
cmp word [eax], dx
je 0x1005f795
lea eax, [ebp - 0x10]
push eax
call fcn.1005efad
pop ecx
jmp 0x1005f7a8
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 0x1005f873
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1005f4b8
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1005f873
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1005f873
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1005f873
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1005f800
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1004dea7
test ebx, ebx
je 0x1005f86e
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1004dea7
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1005f873
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 0x1005f873
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.10055c8d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1005f875
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10015fa5
leave
ret
Function at 0x1005fcdf
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1007c008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x1005fd22
call fcn.10042538
mov dword [eax], 0xf
call fcn.1004254b
mov dword [eax], 0xd
call fcn.1004b983
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10015fa5
leave
ret
test eax, eax
jne 0x1005fd29
inc eax
jmp 0x1005fd16
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 0x1005fd14
xor eax, eax
cmp ecx, 1
setne al
jmp 0x1005fd16

Function at 0x414dee
Capabilities:
Encode data using xor

Disassembly:
xor dword [ebx], eax
add ebx, 4
cmp ebx, edx
jne fcn.00414dee
ret
Function at 0x40945b
Capabilities:
Encode data using xor

Disassembly:
das
sub eax, 0x5b5205f4
pushfd
mov ebx, ebp
mov ch, byte [0xcc29a065]
pop ss
sbb al, 0xbe
jmp fcn.004093e2
adc byte [ebx + 0x4948c457], 0xd2
movsd dword es:[edi], dword [esi]
cmp eax, 0x9c42c8dc
cdq
xor dword [0x14e4cf34], esp
lodsb al, byte [esi]
leave
fld xword [ebp - 0x3c]
sti
in al, dx
ror dword [esp], 0x6c
xchg ebp, eax
lahf
sbb eax, 0x41a3e54c
cmc
js 0x409463
js 0x4094fa
nop
les eax, [esi + 0x55]
xchg dword [eax], esp
jecxz 0x409417
test dword [0xb07e37a4], edx
adc eax, 0xed4d249e
inc esp
jmp [edx]
std
cmp al, byte [edx + 0x5b7d37c5]
cld
pop esp
jb 0x409579
inc edi
inc edi
clc
aas
out 0xd6, al
lodsd eax, dword [esi]
inc eax
mov esp, 0xfcbff381
ljmp 0xad14

Function at 0x422d4b
Capabilities:
Encode data using xor

Disassembly:
cdq
cmp byte [edx], cl
lodsd eax, dword [esi]
pmuludq mm0, qword [ecx + 0x5878e77e]
dec esp
sbb dword [eax + 0x601e7c9], ebp
or ah, byte [ebx]
or bl, byte [esi - 8]
or eax, 0x656de0a8
clc
sbb eax, 0xeed4e2a5
mov ebx, gs
xor ebp, dword [ecx - 0x7be83ad7]
sbb eax, 0x4fc4aaa7
mov bh, 0x29
cwde
or al, bl
fcompi st(2)
lea ebx, [ecx]
jl 0x422d6d
mov ebp, 0x76630aaf
add byte [edi], ah
test al, 0
sbb byte [ecx + 0x76], al
jmp 0x560b19ff

Function at 0x42357b
Capabilities:
Encode data using xor

Disassembly:
adc eax, esp
mov bl, 0x45
adc ah, byte [eax]
inc edi
mov cl, 0x2e
mov cl, 0x89
mov esp, dword [ebx + 0x67b5fcf1]
push cs
add byte [ecx - 0x588faa62], al
xor al, 0xe7
mov al, byte [0xd4a565e4]
fisub dword [eax]
add al, 0xb1
rcr dword [esi + 0x70d16eae], 1
stosb byte es:[edi], al
xor esi, dword [ebp + 0x4f]
jb 0x423550
mov ch, 0xa0
pop ecx
pop esi
ret 0x8735

Function at 0x44293c
Capabilities:
Encode data using xor

Disassembly:
sbb byte [edx - 0x2a4708d1], ch
push 0xf4c7c77d
sbb eax, 0xfbc72a04
fidiv dword [ebp - 0x42e6e643]
sahf
pop esp
lodsd eax, dword [esi]
invalid
Function at 0x401fb0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Get windows directory from kuser_shared_data

Disassembly:
mov eax, dword [0x802208]
sub esp, 0x20c
push ebp
mov ebp, ecx
push esi
push edi
test eax, eax
je 0x40215d
cmp dword [0x80220c], 0
jne 0x402149
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.004024b0
add esp, 0xc
xor edi, edi
xor eax, eax
nop
mov byte [esp + eax + 0x18], al
inc eax
cmp eax, 0x100
jb 0x402000
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 + 0x41b0d4]
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 0x402010
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 + 0x41b0d8]
mov byte [esp + edx + 0xc], al
inc edx
cmp edx, 0xb
jb 0x402045
push 0x200
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.004024b0
mov edx, 0x7ffe0030
add esp, 0xc
xor ecx, ecx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4020a4
sub edx, esi
sar edx, 1
je 0x40215d
mov esi, ebp
lea edi, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x4020c0
sub esi, edi
add edx, 0xc
add edx, esi
cmp edx, 0x200
ja 0x40215d
xor eax, eax
push ebx
test edx, edx
je 0x4020f8
movzx ebx, word [eax + eax + 0x7ffe0030]
test bx, bx
je 0x4020f8
mov byte [esp + eax + 0x1c], bl
inc ecx
inc eax
cmp eax, edx
jb 0x4020e1
xor eax, eax
test edx, edx
je 0x402112
mov edi, edi
mov bl, byte [esp + eax + 0x10]
test bl, bl
je 0x402112
mov byte [esp + ecx + 0x1c], bl
inc eax
inc ecx
cmp eax, edx
jb 0x402100
xor eax, eax
test edx, edx
je 0x40212f
lea ecx, [esp + ecx + 0x1c]
lea esp, [esp]
mov bl, byte [eax + ebp]
test bl, bl
je 0x40212f
mov byte [ecx], bl
inc eax
inc ecx
cmp eax, edx
jb 0x402120
push 8
push 0
lea eax, [esp + 0x24]
push eax
call dword [0x802208]
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 0x403130
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 0x40317b
xor esi, esi
lea edi, [esp + 0x818]
mov al, byte [esi + ecx]
test al, al
je 0x40316b
cbw
inc esi
mov word [edi], ax
add edi, 2
cmp esi, 0x1ff
jb 0x403151
jmp 0x403170
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 0x4031cb
mov edi, edx
lea ecx, [edi + 2]
jmp 0x403190
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x403190
sub edi, ecx
sar edi, 1
cmp edi, 0x200
jb 0x4031ac
mov edi, 0x1ff
push edi
push edx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00401590
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 0x4031ed
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x403260
mov esi, dword [ebx]
cmp esi, ebx
je 0x403260
test esi, esi
je 0x403260
cmp word [esi + 0x24], 2
jbe 0x40325a
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x40325a
cmp dword [esi + 0x18], 0
je 0x40325a
test ebp, ebp
je 0x403215
cmp ebp, eax
jne 0x40325a
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00401590
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40323a
cmp eax, dword [esi + 0x18]
jne 0x40325a
cmp dword [esp + 0x10], 0
je 0x40326d
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.004029c0
add esp, 8
test eax, eax
je 0x40326d
mov esi, dword [esi]
cmp esi, ebx
jne 0x4031f3
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 0x403280
Capabilities:
Check os version

Disassembly:
mov ecx, 1
mov edx, 0x802348
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x4033a9
cmp dword fs:[0xc0], eax
je 0x4032ab
mov dword [0x802344], 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 [0x80222c], eax
mov eax, dword [esi + 0xa8]
mov dword [0x802230], eax
movzx edx, word [esi + 0xac]
mov dword [0x802234], edx
mov eax, dword [esi + 0xb0]
mov dword [0x802238], eax
mov eax, dword [esi + 0x1f4]
test eax, eax
je 0x40330b
push 0x7f
push eax
push 0x80223c
call fcn.00401590
mov edx, dword [0x802234]
add esp, 0xc
jmp 0x403313
xor eax, eax
mov word [0x80223c], ax
movzx eax, byte [esi + 0xaf]
mov ecx, 0xff
mov word [0x80233c], ax
movzx eax, word [esi + 0xae]
and ax, cx
mov word [0x80233e], ax
movzx eax, word [0x7ffe02d0]
mov word [0x802340], ax
mov ecx, eax
mov byte [0x802342], 0
cmp byte [0x7ffe0268], 0
je 0x40335a
mov ebx, dword [0x7ffe0264]
pop esi
mov byte [0x802342], bl
cmp ebx, 1
pop ebx
jne 0x403374
and ecx, 0xffef
mov word [0x802340], cx
test edx, edx
jne 0x4033a9
call fcn.00403280
cmp dword [0x80222c], 6
ja 0x4033a9
jb 0x403391
cmp dword [0x802230], 4
jae 0x4033a9
call fcn.00403280
cmp dword [0x80222c], 0xa
jae 0x4033a9
mov dword [0x802234], 1
ret

Function at 0x4033b0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [0x802bd0]
sub esp, 0x11c
test eax, eax
jne 0x4034ae
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.004024b0
add esp, 0xc
xor edi, edi
xor eax, eax
lea ebx, [ebx]
mov byte [esp + eax + 0x28], al
inc eax
cmp eax, 0x100
jb 0x403400
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 + 0x41b100]
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 0x403410
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 + 0x41b104]
mov byte [esp + esi + 0xc], al
inc esi
cmp esi, 0x1a
jb 0x403445
xor edx, edx
lea ecx, [esp + 0xc]
call fcn.00403cf0
pop edi
pop esi
pop ebx
test eax, eax
je 0x4034a9
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4034a9
mov dword [0x802bd0], eax
add esp, 0x11c
ret
mov eax, dword [0x802bd0]
add esp, 0x11c
ret
Function at 0x403cf0
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 0x403d4b
mov edi, ecx
lea edx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x403d10
sub edi, edx
sar edi, 1
cmp edi, 0x200
jb 0x403d2c
mov edi, 0x1ff
push edi
push ecx
lea eax, [esp + 0x420]
push eax
lea ebp, [edi + edi]
call fcn.00401590
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 0x403d6d
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax + 0xc]
add ebx, 0x14
je 0x403ddf
mov esi, dword [ebx]
cmp esi, ebx
je 0x403ddf
test esi, esi
je 0x403ddf
cmp word [esi + 0x24], 2
jbe 0x403dd9
movzx eax, word [esi + 0x2c]
cmp eax, 2
jbe 0x403dd9
cmp dword [esi + 0x18], 0
je 0x403dd9
test ebp, ebp
je 0x403d95
cmp ebp, eax
jne 0x403dd9
push edi
push dword [esi + 0x30]
lea eax, [esp + 0x20]
push eax
call fcn.00401590
mov edx, dword [esp + 0x1c]
xor eax, eax
add esp, 0xc
mov word [esp + edi*2 + 0x18], ax
test edx, edx
je 0x403dba
cmp edx, dword [esi + 0x18]
jne 0x403dd9
cmp dword [esp + 0x14], eax
je 0x403dec
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x41c]
push eax
call fcn.004029c0
add esp, 8
test eax, eax
je 0x403dec
mov esi, dword [esi]
cmp esi, ebx
jne 0x403d73
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 0x41a1b2
Capabilities:
Execute syscall

Disassembly:
mov edx, esp
sysenter
ret