joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411d62
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x417678], 0
push ebx
push esi
mov esi, 0x417680
jne 0x411d8e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
mov dword [0x417698], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x417678], 1
push dword [0x417698]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
jne 0x411e2b
push 0x14
push 8
push dword [0x417008]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
test ebx, ebx
je 0x411e55
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x41767c]
test eax, eax
je 0x411dd0
mov dword [eax], ebx
push edi
push esi
mov dword [ebx + 4], eax
mov dword [0x41767c], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edi, [ebx + 0x10]
push 0
push 0
push 0x100000
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push 8
push 0xffffffffffffffff
push ebx
push 0x411e5a
push dword [edi]
lea eax, [ebx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
push ebx
push dword [0x417698]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
push 0xc
push 0
push dword [0x417008]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x411e55
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0x10]
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 8]
mov dword [eax], ecx
mov dword [ebx + 8], eax
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10026e54
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
cmp dword [esp + 4], eax
jle 0x10026e7d
push esi

Function at 0x1002b924
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x3c]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [edx], edi
jne 0x1002b95f
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx]
or eax, 0x1e
push edi
and eax, 0x87f3f
push eax
push edx
push edi
push ecx
call dword [ecx + 0x18]
add esp, 0x14
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x1002ba43
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x24]
jbe 0x1002b999
mov eax, dword [ebx + 0x80]
push edi
cdq
push ecx
push edx
push eax
call fcn.10076700
mov dword [ebp - 0x14], edx
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x28]
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov dword [ebx + 0x24], eax
jmp 0x1002b999
xor edi, edi
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x1002ba43
mov edi, dword [esi + 0xc]
mov dword [ebp - 0xc], edi
cmp edi, dword [ebx + 0x18]
ja 0x1002ba33
test byte [esi + 0x14], 0x20
jne 0x1002ba33
mov eax, dword [ebx + 0x80]
cdq
push edx
push eax
lea ecx, [edi - 1]
push 0
push ecx
call fcn.10076700
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
cmp edi, 1
jne 0x1002b9dd
call fcn.1002b072
push dword [ebp - 0x14]
mov eax, dword [esi]
push dword [ebp - 0x18]
mov dword [ebp - 8], eax
push dword [ebx + 0x80]
push eax
mov eax, dword [ebx + 0x3c]
call fcn.10023c6b
add esp, 0x10
mov dword [ebp - 4], eax
cmp edi, 1
jne 0x1002ba15
mov esi, dword [ebp - 8]
add esi, 0x18
lea edi, [ebx + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 0xc]
cmp edi, dword [ebx + 0x20]
jbe 0x1002ba1d
mov dword [ebx + 0x20], edi
mov eax, dword [ebp + 8]
push dword [esi]
mov eax, dword [eax + 0x58]
mov ebx, edi
call fcn.100359e9
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
pop ecx
cmp dword [ebp - 4], 0
mov eax, dword [esi + 8]
mov dword [ebp + 0xc], eax
je 0x1002b997
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1004228e
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x100422a0
xor eax, eax
jmp 0x1004238f
push esi
mov esi, dword [ebp + 8]
push 0x50
call fcn.10024a4a
mov esi, eax
pop ecx
test esi, esi
je 0x1004238e
push ebx
push dword [ebp + 0x10]
mov ebx, dword [edi]
push dword [ebp + 8]
call fcn.10042018
push dword [ebp + 0x10]
mov dword [esi], eax
push dword [edi + 8]
push dword [ebp + 8]
call fcn.100420db
push 0
push dword [ebp + 0x10]
mov dword [esi + 8], eax
or byte [ebx - 0xaff3b9], cl
jne 0x100422eb
call fcn.10041dc8
push dword [ebp + 0x10]
mov dword [esi + 0xc], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x10]
call fcn.10042018
push 0
push dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
push eax
push dword [ebp + 8]
call fcn.10041dc8
push dword [ebp + 0x10]
mov dword [esi + 0x14], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x18]
call fcn.10042018
add esp, 0x44
push dword [ebp + 0x10]
mov dword [esi + 0x18], eax
mov al, byte [edi + 4]
mov byte [esi + 4], al
push dword [edi + 0x1c]
push dword [ebp + 8]
call fcn.1004228e
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x28]
push eax
push dword [ebp + 8]
call fcn.10041dc8
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
push eax
push dword [ebp + 8]
call fcn.10041dc8
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov ax, word [edi + 6]
or dword [esi + 0x38], 0xffffffff
or dword [esi + 0x3c], 0xffffffff
mov ecx, 0xfff7
and ax, cx
add esp, 0x2c
or dword [esi + 0x40], 0xffffffff
mov word [esi + 6], ax
mov dword [esi + 0x24], ebx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x100445a1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x100446b9
test esi, esi
je 0x100446b9
movzx edx, word [edi + 2]
mov eax, 0x800
mov ecx, edx
and ecx, eax
mov ebx, eax
cmp cx, bx
je 0x1004465d
movzx ecx, word [esi + 2]
mov ebx, ecx
and ebx, eax
cmp bx, ax
je 0x1004465d
xor cl, dl
test cl, 0x10
jne 0x1004465d
mov al, byte [edi]
cmp al, byte [esi]
jne 0x1004465d
push dword [esi + 8]
push dword [edi + 8]
call fcn.100445a1
pop ecx
pop ecx
test eax, eax
jne 0x1004465d
push dword [esi + 0xc]
push dword [edi + 0xc]
call fcn.100445a1
pop ecx
pop ecx
test eax, eax
jne 0x1004465d
mov ebx, dword [esi + 0x10]
mov edi, dword [edi + 0x10]
call fcn.100446c8
test eax, eax
jne 0x1004465d
mov edi, dword [esp + 0x10]
mov eax, dword [edi + 0x18]
cmp eax, dword [esi + 0x18]
jne 0x1004465d
mov ax, word [edi + 0x1c]
cmp ax, word [esi + 0x1c]
jne 0x1004465d
movzx eax, word [edi + 2]
mov ecx, eax
mov eax, 0x400
and ecx, eax
mov edx, eax
cmp cx, dx
jne 0x10044662
mov cx, word [esi + 2]
and cx, dx
cmp cx, ax
jne 0x1004465d
mov eax, dword [edi + 4]
cmp eax, dword [esi + 4]
je 0x1004468c
push 2
pop eax
jmp 0x100446c4
cmp byte [edi], 0x98
je 0x1004468c
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x1004468c
mov dx, word [esi + 2]
mov ebx, eax
and dx, bx
cmp dx, ax
je 0x1004465d
mov edx, dword [esi + 4]
test edx, edx
je 0x1004465d
call fcn.1002660e
test eax, eax
jne 0x1004465d
movzx ecx, word [edi + 2]
mov dx, word [esi + 2]
mov eax, 0x100
and ecx, eax
and dx, ax
cmp cx, dx
je 0x100446a8
xor eax, eax
inc eax
jmp 0x100446c4
test cx, cx
je 0x100446b5
mov eax, dword [edi + 0x14]
cmp eax, dword [esi + 0x14]
jne 0x1004465d
xor eax, eax
jmp 0x100446c4
mov eax, esi
sub eax, edi
neg eax
sbb eax, eax
and eax, 2
pop edi
pop esi
pop ebx
ret
Function at 0x1005aad8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1bc
push ebx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebx + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x3c], eax
push eax
mov eax, dword [esi + 4]
call fcn.10059970
mov edi, dword [esi + 0x1c]
mov dword [esp + 0x30], edx
mov edx, dword [esi + 0x14]
imul edx, edx, 0x28
add edx, edi
cmp byte [ebx + 0x16], 0
pop ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x38], edx
jne 0x1005acd0
cmp dword [ebx + 0x34], 0
jne 0x1005acd0
jmp 0x1005acc4
mov eax, 0x100
cmp word [edi + 0x10], ax
jne 0x1005acc1
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
not eax
and eax, dword [edi + 0x20]
not ecx
and ecx, dword [edi + 0x24]
and eax, dword [ebp + 0x14]
and ecx, dword [ebp + 0x18]
or eax, ecx
jne 0x1005acc1
mov ecx, dword [edi + 0xc]
mov eax, dword [ecx + 0x160]
mov esi, dword [ecx + 0x164]
and eax, dword [esp + 0x28]
and esi, dword [esp + 0x2c]
or eax, esi
je 0x1005acc1
mov esi, dword [ecx + 0x14]
fldz
mov ebx, dword [ecx + 0x1c]
imul esi, esi, 0x28
fst qword [esp + 0x20]
fstp qword [esp + 0x30]
and dword [esp + 0x10], 0
add esi, ebx
and dword [esp + 0x14], 0
jmp 0x1005ac60
mov eax, 0x200
cmp word [ebx + 0x10], ax
jne 0x1005abc1
lea eax, [esp + 0x40]
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebx + 0xc]
jmp 0x1005ac0e
mov eax, dword [esp + 0x3c]
cmp dword [ebx + 8], eax
jne 0x1005ac5d
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esp + 0x6c], eax
lea eax, [esp + 0x40]
push eax
push dword [ebp + 0x20]
lea eax, [esp + 0x70]
push dword [ebp + 0x1c]
mov dword [esp + 0x74], ecx
push dword [ebp + 0x18]
mov byte [esp + 0x88], 0x45
push dword [ebp + 0x14]
mov dword [esp + 0x98], ebx
mov dword [esp + 0x90], 1
push eax
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
call fcn.1005bb4f
fld qword [esp + 0x70]
fadd qword [esp + 0x38]
mov ecx, dword [ebp + 0x28]
mov eax, dword [esp + 0x78]
or dword [esp + 0x28], eax
mov eax, dword [esp + 0x7c]
fstp qword [esp + 0x38]
fld qword [esp + 0x60]
or dword [esp + 0x2c], eax
fadd qword [esp + 0x48]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x50]
add esp, 0x18
fstp qword [esp + 0x30]
fld qword [ecx + 0x18]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x41
jnp 0x1005ac6b
add ebx, 0x28
cmp ebx, esi
jb 0x1005aba0
mov ecx, dword [ebp + 0x28]
cmp dword [ebp + 0x24], 0
je 0x1005ac8e
fld qword [esp + 0x30]
push ecx
push ecx
fstp qword [esp]
call fcn.1005aa9a
fmul qword [esp + 0x38]
add esp, 8
fadd qword [esp + 0x20]
fstp qword [esp + 0x20]
fld qword [ecx + 0x18]
fcomp qword [esp + 0x20]
fnstsw ax
test ah, 0x41
jne 0x1005acc1
mov eax, dword [esp + 0x10]
fld qword [esp + 0x20]
fstp qword [ecx + 0x18]
mov dword [ecx + 0x20], eax
mov eax, dword [esp + 0x14]
fld qword [esp + 0x30]
fstp qword [ecx + 8]
mov dword [ecx + 0x24], eax
mov dword [ecx], 0x10000000
mov dword [ecx + 0x10], edi
add edi, 0x28
mov dword [esp + 0x1c], edi
cmp edi, edx
jb 0x1005ab2e
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1006155f
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0x10]
mov edx, dword [eax]
mov eax, dword [ebp + 8]
and dword [ebp - 0xc], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov ecx, ebx
mov dword [ebp - 8], edx
mov dword [ebp - 0x1c], eax
call fcn.100266ed
test dl, 0x40
jne 0x10061596
cmp dword [0x100a955c], 0
je 0x100618c1
push 5
pop ecx
cmp eax, ecx
jl 0x100618c1
mov edi, 0x1009be24
mov esi, ebx
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x100618c1
or dword [ebp - 8], 0x40
xor esi, esi
cmp eax, esi
mov dword [ebp + 8], esi
lea edi, [eax + 2]
jle 0x100615d2
xor ecx, ecx
cmp byte [esi + ebx], 0x26
sete cl
add edi, ecx
inc esi
cmp esi, eax
jl 0x100615c2
push edi
call fcn.10024a7e
pop ecx
mov dword [ebp - 4], eax
test eax, eax
jne 0x100615e8
push 7
pop eax
jmp 0x1006193c
cmp byte [ebx + 5], 0x2f
jne 0x10061641
cmp byte [ebx + 6], 0x2f
jne 0x10061641
lea edi, [ebx + 7]
mov al, byte [edi]
push 7
pop edx
mov dword [ebp - 0x24], edi
test al, al
je 0x10061644
cmp al, 0x2f
je 0x1006160f
inc edx
mov al, byte [edx + ebx]
test al, al
jne 0x10061603
cmp edx, 7
je 0x10061644
cmp edx, 0x10
jne 0x1006162a
push 9
pop ecx
mov esi, 0x1009be2c
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10061644
mov edi, dword [ebp - 0x24]
push edi
add edx, 0xfffffff9
push edx
push 0x1009be38
push 5
pop edx
mov al, byte [edx + ebx]
xor esi, esi
test al, al
je 0x1006177d
mov esi, eax
lea eax, [esi + 2]
push eax
call fcn.10024a7e
mov edi, eax
pop ecx
mov dword [ebp - 4], edi
test edi, edi
je 0x100615e0
push esi
push ebx
push edi
call fcn.10070600
lea eax, [edi + esi]
add esp, 0xc
mov byte [eax], 0
mov byte [eax + 1], 0

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4026ca
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
push dword [ebp + 8]
lea edi, [esi + 0x68]
lea ecx, [edi + 0xc]
call fcn.004037e0
push 0
push 0x61
mov ecx, edi
call fcn.00406150
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
call fcn.00416040
mov edx, 0xce4
lea ecx, [ebp - 0xc]
call fcn.0040272b
push dword [eax]
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [ebp - 0xc]
call fcn.0040327c
pop ecx
push 1
push dword [esi + 0x6c]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
xor eax, eax
pop esi
leave
ret 8

Function at 0x402acc
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x416bf6
call fcn.00416310
push ecx
push esi
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [ebp - 4], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], al
mov byte [esi + 0x21], al
call fcn.004036e8
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00402b26
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x402b78
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x416c41
call fcn.00416310
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 3
call fcn.0040a55e
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 2
call fcn.00402bce
push dword [esi + 0x24]
call fcn.0040327c
and byte [ebp - 4], 0
pop ecx
lea ecx, [esi + 0xc]
call fcn.004104b8
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00402f71
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x40449e
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x404609
Capabilities:
Create directory

Disassembly:
mov eax, 0x416e64
call fcn.00416310
sub esp, 0x38
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40462c
mov al, 1
jmp 0x404671
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40463d
xor al, al
jmp 0x404671
lea ecx, [ebp - 0x44]
call fcn.00404dc2
lea ecx, [ebp - 0x1c]
call fcn.004036e8
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.00404df4
test al, al
je 0x404666
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.0040327c
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x404de5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x404df3
or eax, eax
ret
Function at 0x405324
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40534a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40534a
xor al, al
jmp 0x40536a
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00416640
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x416050
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call sub.MSVCRT.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x416078
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x416087
mov eax, 1
ret 4

Function at 0x48a3b2
Capabilities:
Parse pe header

Disassembly:
pushal
xor edx, edx
mov esi, dword fs:[edx]
lodsd eax, dword [esi]
cmp eax, 0xffffffff
je 0x48a3c2
mov esi, eax
jmp 0x48a3b8
mov edi, dword [esi + 4]
and edi, 0xffff0000
cmp word [edi], 0x5a4d
je 0x48a3da
sub edi, 0x10000
jmp 0x48a3cb
mov ebx, edi
add ebx, dword [ebx + 0x3c]
cmp word [ebx], 0x4550
je 0x48a3e8
jmp 0x48a3cb
mov dword [esp + 0x1c], edi
popal
ret

Function at 0x48a3ee
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
pushal
mov ebx, dword [esp + 0x24]
mov ecx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
add ebx, ecx
mov edi, dword [ebx + 0x20]
add edi, ecx
xor esi, esi
lea edx, [edi + esi*4]
mov edx, dword [edx]
add edx, ecx
xor eax, eax
rol eax, 7
xor al, byte [edx]
inc edx
cmp byte [edx], 0
jne 0x48a40d
cmp eax, dword [esp + 0x28]
je 0x48a424
inc esi
cmp esi, dword [ebx + 0x18]
jb 0x48a404
mov edx, dword [ebx + 0x24]
add edx, ecx
movzx edx, word [edx + esi*2]
mov eax, dword [ebx + 0x1c]
add eax, ecx
mov eax, dword [eax + edx*4]
add eax, ecx
mov dword [esp + 0x1c], eax
popal
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40c470
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
or ebp, 0xffffffff
jmp 0x40c492
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c488
mov eax, 1
add ebx, ebx
jne 0x40c4ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c4a0
jne 0x40c4bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4a0
xor ecx, ecx
sub eax, 3
jb 0x40c4d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c542
mov ebp, eax
add ebx, ebx
jne 0x40c4db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c4e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c50c
inc ecx
add ebx, ebx
jne 0x40c4f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c4ed
jne 0x40c509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c4ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c52c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c51d
jmp 0x40c48e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c52c
add edi, ecx
jmp 0x40c48e
pop esi
mov edi, esi
mov ecx, 4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c54a
cmp byte [edi], 1
jne 0x40c54a
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 eax, ebx
loop 0x40c54f
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c5c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd70c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd748]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c57c
mov ecx, edi
jns 0x40c5ab
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 + 0xd74c]
or eax, eax
je 0x40c5c1
mov dword [ebx], eax
add ebx, 4
jmp 0x40c599
call dword [esi + 0xd750]
popal
jmp 0x401128

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx