joyce8/EMBER2024-capa huggingface dataset:
Function at 0x426c40
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x254
mov esi, dword [ebp + 8]
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x426cac
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x426cde
lea eax, [ebp - 0x22c]
push 0x105
push eax
push 0x43479c
call fcn.0040d26d
add esp, 0xc
mov esi, 0x43479c
mov word [0x4349a4], 0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040dac1
mov eax, esi
add esp, 0x254
pop esi
pop ebp
ret
lea eax, [esi + 4]
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
jne 0x426c70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0040d386
cmp esi, 2
jne 0x426cf8
mov dword [eax], 2
jmp 0x426cfe
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x12
je 0x426c97
call fcn.0040d386
mov dword [eax], 2
jmp 0x426c97
mov dword [eax], 9
xor esi, esi
jmp 0x426c97
Function at 0x5da2f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x131000]
push edi
or ebp, 0xffffffff
jmp 0x5da312
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5da319
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5da308
mov eax, 1
add ebx, ebx
jne 0x5da32b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5da320
jne 0x5da33c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5da320
xor ecx, ecx
sub eax, 3
jb 0x5da350
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5da3c2
mov ebp, eax
add ebx, ebx
jne 0x5da35b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x5da368
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x5da38c
inc ecx
add ebx, ebx
jne 0x5da378
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5da36d
jne 0x5da389
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5da36d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5da3ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5da39d
jmp 0x5da30e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5da3ac
add edi, ecx
jmp 0x5da30e
pop esi
mov edi, esi
mov ecx, 0x8d1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5da3ca
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x5da3cf
lea edi, [esi + 0x1d8000]
mov eax, dword [edi]
or eax, eax
je 0x5da440
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1da5d0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1da60c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5da3f5
mov ecx, edi
jns 0x5da424
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 + 0x1da614]
or eax, eax
je 0x5da43a
mov dword [ebx], eax
add ebx, 4
jmp 0x5da412
call dword [esi + 0x1da610]
mov ebp, dword [esi + 0x1da618]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1cf]
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 0x5da474
sub esp, 0xffffff80
jmp 0x4010e0
Function at 0x100096d0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1000989d
pushal
mov esi, 0x44c8000
lea edi, [esi - 0x7000]
push edi
jmp 0x100096fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10009701
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100096f0
mov eax, 1
add ebx, ebx
jne 0x10009713
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10009708
jne 0x10009724
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10009708
xor ecx, ecx
sub eax, 3
jb 0x10009738
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100097aa
mov ebp, eax
add ebx, ebx
jne 0x10009743
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10009750
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10009774
inc ecx
add ebx, ebx
jne 0x10009760
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10009755
jne 0x10009771
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10009755
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10009794
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10009785
jmp 0x100096f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10009794
add edi, ecx
jmp 0x100096f6
pop esi
mov edi, esi
mov ecx, 0x7b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x100097b2
cmp byte [edi], 4
jne 0x100097b2
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 0x100097b7
lea edi, [esi + 0x7000]
mov eax, dword [edi]
or eax, eax
je 0x1000982f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x91b8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x921c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100097e4
mov ecx, edi
jns 0x10009813
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 + 0x9220]
or eax, eax
je 0x10009829
mov dword [ebx], eax
add ebx, 4
jmp 0x10009801
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10009860
cmp al, 0xef
ja 0x10009853
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10009835
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10009842
mov ebp, dword [esi + 0x9224]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x10009894
sub esp, 0xffffff80
jmp 0x100032af
Function at 0x404760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x423008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push 0x3fe
push 0x3ff
push eax
call fcn.004010a0
push dword [eax + 4]
push dword [eax]
call fcn.0040a820
add esp, 0x20
mov esi, eax
or eax, 0xffffffff
test esi, esi
cmovs esi, eax
lea eax, [ebp - 0x408]
push 0
push eax
push esi
lea eax, [ebp - 0x404]
push eax
push dword [0x424a54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004047d8
mov esp, ebp
pop ebp
ret

Function at 0x405116
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x405155
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x405155
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x405155
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x405155
cmp dword [ecx + 0x74], 0xe
jbe 0x405155
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4080b3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004191b0
mov eax, dword [0x423008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0040c5f7
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4080f5
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x408251
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00419100
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x424208]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0040c806
mov ecx, dword [esi*4 + 0x424208]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x40824a
cmp eax, dword [ecx + edi + 0x24]
jne 0x40824a
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40824a
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040c806
add esp, 0x14
test edx, edx
jl 0x40824a
jg 0x4081c0
test eax, eax
jb 0x40824a
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x40824a
jl 0x4081da
cmp dword [ebp - 0x1008], eax
ja 0x40824a
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4081f8
test ebx, ebx
je 0x408231
cmp ecx, edi
jae 0x408231
mov al, byte [ecx]
cmp al, 0xd
jne 0x408212
lea eax, [edi - 1]
cmp ecx, eax
jae 0x40821e
cmp byte [ecx + 1], 0xa
jne 0x40821e
inc ecx
jmp 0x40821e
movzx eax, al
movsx eax, byte [eax + 0x4231c0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4081f8
cmp edx, ebx
jne 0x4081f8
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x40824f
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004047d8
leave
ret
Function at 0x40ceab
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 + 0x424208]
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 0x40ceeb
cmp byte [ebx], 0xa
jne 0x40ceeb
or byte [edi + eax + 0x28], 4
jmp 0x40cef0
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 0x40cfef
mov dl, byte [eax]
cmp dl, 0x1a
je 0x40cfd2
inc eax
cmp dl, 0xd
je 0x40cf1c
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x40cf42
cmp eax, ecx
jae 0x40cf50
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 0x40cf04
jmp 0x40cfef
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 0x40cfcd
cmp dword [ebp - 0x10], 0
je 0x40cfcd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x424208]
test byte [eax + edi + 0x28], 0x48
je 0x40cfa7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40cf92
mov byte [esi], dl
jmp 0x40cfa3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x424208]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40cfef
cmp byte [ebp - 1], 0xa
jne 0x40cfb6
cmp esi, ebx
jne 0x40cfb6
mov byte [esi], 0xa
jmp 0x40cfee
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040c824
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40cfef
mov byte [esi], 0xd
jmp 0x40cfee
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x424208]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40cfec
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40cfef
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40cff8
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 + 0x424208]
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 0x40d03e
cmp word [ebx], dx
jne 0x40d03e
or byte [eax + edi + 0x28], 4
jmp 0x40d043
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 0x40d1a6
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 0x40d186
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x40d084
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40d0ba
cmp eax, edx
jae 0x40d0c8
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 0x40d05f
jmp 0x40d1a6
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 0x40d181
cmp dword [ebp - 0x18], 0
je 0x40d181
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x424208]
test byte [eax + edi + 0x28], 0x48
je 0x40d157
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 0x40d11b
mov word [esi], cx
jmp 0x40d152
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x424208]
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 + 0x424208]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x424208]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x40d1a6
pop eax
cmp word [ebp - 4], ax
jne 0x40d167
cmp esi, ebx
jne 0x40d167
mov word [esi], ax
jmp 0x40d1a3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040c824
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x40d1a6
push 0xd
pop eax
jmp 0x40d162
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x424208]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x40d1a0
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x40d1a6
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 0x410974
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41bc98
push 0x41bc90
push str.FlsAlloc
push 0x1f
call fcn.00410890
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4109a8
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a224]
call esi
jmp 0x4109ae
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4109f2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41bca8
push 0x41bca0
push str.FlsGetValue
push 0x21
call fcn.00410890
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410a29
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a224]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x410a31
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41bcb0
push 0x41bca8
push str.FlsSetValue
push 0x22
call fcn.00410890
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410a6b
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41a224]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x411e65
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 0x411f02
push ebx
push esi
call fcn.00411e2e
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.0040e6cd
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x411eaf
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x411f01
push edi
push eax
call fcn.0040e52d
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x411ecf
call fcn.0040dfff
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x411f00
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040e6cd
add esp, 0x20
test eax, eax
jne 0x411eee
push edi
call fcn.0040dfff
jmp 0x411ef6
push ebx
call fcn.0040dfff
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 0x416aa5
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.00416a21
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x416c14
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x416c14
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x416bc9
jg 0x416b01
test eax, eax
je 0x416bbf
push 1
push 0x1000
call fcn.00410da4
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x416b24
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x416bb6
push 0x8000
push ebx
call fcn.0040be32
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x416b4d
jg 0x416b48
cmp ecx, 0x1000
jb 0x416b4d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00410303
add esp, 0x10
cmp eax, 0xffffffff
je 0x416b92
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 0x416b48
jl 0x416b79
test ecx, ecx
jne 0x416b3a
push dword [ebp - 0xc]
push ebx
call fcn.0040be32
push esi
call fcn.0040dfff
add esp, 0xc
xor ebx, ebx
jmp 0x416c22
cmp byte [edi + 0x24], 0
je 0x416ba9
cmp dword [edi + 0x20], 5
jne 0x416ba9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x416bb4
mov ebx, dword [edi + 0x18]
jmp 0x416bb6
xor ebx, ebx
push esi
call fcn.0040dfff
pop ecx
jmp 0x416c22
test ecx, ecx
jg 0x416b8b
jl 0x416bc9
test eax, eax
jae 0x416b8b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040c824
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x416be9
cmp byte [edi + 0x1c], 0
je 0x416b8b
jmp 0x416c1a
push ebx
call fcn.004126f9
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x416b8b
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 0x416c22
cmp byte [edi + 0x1c], 0
je 0x416c1f
mov ebx, dword [edi + 0x18]
jmp 0x416c22
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0040c824
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x419050
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41907d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41907d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x404354
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4301f4]
jne 0x40435e
repz ret
jmp fcn.004071d1

Function at 0x40fbaa
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4301f4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040829b
and dword [ebp - 0x14], 0
cmp dword [0x431e4c], 0
mov dword [ebp - 0x18], eax
jne 0x40fc5d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40fd05
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40fd05
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x431e4c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x431e50], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x431e54], eax
call edi
push eax
call esi
mov dword [0x431e5c], eax
test eax, eax
je 0x40fc5d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x431e58], eax
mov eax, dword [0x431e58]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40fcb6
cmp dword [0x431e5c], ecx
je 0x40fcb6
push eax
call esi
push dword [0x431e5c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40fcb6
test ebx, ebx
je 0x40fcb6
call edi
test eax, eax
je 0x40fcad
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40fcad
test byte [ebp - 8], 1
jne 0x40fcb6
or dword [ebp + 0x10], 0x200000
jmp 0x40fce9
mov eax, dword [0x431e50]
cmp eax, dword [ebp - 0x18]
je 0x40fce9
push eax
call esi
test eax, eax
je 0x40fce9
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40fce9
mov eax, dword [0x431e54]
cmp eax, dword [ebp - 0x18]
je 0x40fce9
push eax
call esi
test eax, eax
je 0x40fce9
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x431e4c]
call esi
test eax, eax
je 0x40fd05
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40fd07
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404354
leave
ret
Function at 0x412fe0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4296f8]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, edx, 0x8088405
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4296f8]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret