joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404a26
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x404a6d
cmp ebx, 0x20
je 0x404a6d
cmp ebx, 0xffffffe0
je 0x404a6d
jne 0x404a76
add eax, 1
cmp esi, eax
je 0x404a83
jne 0x404a52
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x404a87
jne 0x404a4e
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
sub esp, 0x10
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov ecx, dword [edx]
test eax, eax
je 0x404b5c
test ecx, ecx
je 0x404b5c
mov ebx, dword [eax + 0x3c]
mov edx, dword [ebx + eax + 0x78]
mov ebx, dword [ebx + eax + 0x7c]
test edx, edx
je 0x404b5c
test ebx, ebx
je 0x404b5c
mov ebx, eax
add ebx, edx
je 0x404b5c
mov esi, dword [edx + eax + 0x18]
test esi, esi
je 0x404b5c
cmp dword [edx + eax + 0x14], 0
je 0x404b5c
mov edi, dword [edx + eax + 0x20]
mov ebx, dword [edx + eax + 0x24]
add edi, eax
mov edx, dword [edx + eax + 0x1c]
add ebx, eax
add edx, eax
test esi, esi
jbe 0x404b5c
mov dword [esp], edx
xor ebp, ebp
mov dword [esp + 0xc], edi
mov dword [esp + 4], esi
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 8]
movzx ecx, word [ebx + ebp*2]
mov esi, dword [eax + ebp*4]
add esi, dword [esp + 0x24]
mov dl, byte [edi]
cmp dl, byte [esi]
jne 0x404b4c
test dl, dl
je 0x404b48
mov dl, byte [edi + 1]
cmp dl, byte [esi + 1]
jne 0x404b4c
add edi, 2
add esi, 2
test dl, dl
jne 0x404b2c
xor eax, eax
jmp 0x404b51
sbb eax, eax
or eax, 1
test eax, eax
je 0x404b68
inc ebp
cmp ebp, dword [esp + 4]
jb 0x404b19
xor eax, eax
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
mov edx, dword [esp]
mov edx, dword [edx + ecx*4]
mov eax, dword [esp + 0x24]
add eax, edx
add esp, 0x10
pop ebx
pop edi
pop esi
pop ebp
ret 8
Function at 0x405a5e
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
cld
xor edx, edx
mov edx, dword fs:[edx + 0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
push 0x18
pop ecx
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x405a8c
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x405a83
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x405a7b
mov eax, ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x405aad
mov esp, ebp
pop ebp
ret

Function at 0x405ab1
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov dword [ebp - 4], 0
add esp, 0xffffffec
push esi
push ebx
push edi
push edx
push ecx
mov eax, dword [ebp + 0x10]
xor edx, edx
xchg edx, eax
mov esi, 0x3c
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov esi, dword [eax + 0x78]
add esi, 0x18
add esi, dword [ebp + 0xc]
mov eax, dword [esi]
mov dword [ebp - 0x14], eax
add esi, 4
lea edi, [ebp - 8]
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
stosd dword es:[edi], eax
mov dword [ebp - 8], eax
lodsd eax, dword [esi]
add eax, dword [ebp + 0xc]
push eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
pop esi
mov dword [ebp - 4], 0
push esi
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
xchg edi, eax
mov ebx, edi
push edi
xor al, al
scasb al, byte es:[edi]
jne 0x405b1d
pop esi
sub edi, ebx
push edx
cld
xor ecx, ecx
dec ecx
mov edx, ecx
xor eax, eax
xor ebx, ebx
lodsb al, byte [esi]
xor al, cl
mov cl, ch
mov ch, dl
mov dl, dh
mov dh, 8
shr bx, 1
rcr ax, 1
jae 0x405b4a
xor ax, 0x8320
xor bx, 0xedb8
dec dh
jne 0x405b39
xor ecx, eax
xor edx, ebx
dec edi
jne 0x405b2a
not edx
not ecx
mov eax, edx
rol eax, 0x10
mov ax, cx
pop edx
cmp edx, eax
je 0x405b70
pop esi
add esi, 4
add dword [ebp - 4], 1
jmp 0x405b11
pop esi
mov eax, dword [ebp - 4]
shl eax, 1
add eax, dword [ebp - 0x10]
xor esi, esi
xchg esi, eax
mov ax, word [esi]
shl ax, 2
add eax, dword [ebp - 8]
xchg esi, eax
mov eax, dword [esi]
add eax, dword [ebp + 0xc]
pop ecx
pop edx
pop edi
pop ebx
pop esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x405b9c
mov esp, ebp
pop ebp
ret 0xc
Function at 0x407090
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
push eax
call fcn.00407c50
mov edi, dword [esp + 0x38]
xor ebp, ebp
push edi
mov ebx, eax
mov dword [esp + 0x18], ebp
call dword [0x43ee38]
add esp, 8
test ebx, ebx
je 0x4071d4
test eax, eax
je 0x4071d4
inc eax
push eax
call fcn.00413b4c
mov ebp, eax
or ecx, 0xffffffff
xor eax, eax
push 0x5c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebp
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.004086f0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x407102
mov byte [edi], 0
inc edi
lea eax, [esp + 0x1c]
push eax
push ebp
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4071c1
push 0x400
mov dword [esp + 0x18], 0x400
mov dword [esp + 0x1c], 1
call fcn.00413b4c
add esp, 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x14]
mov esi, eax
mov eax, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push edi
push eax
call ebx
test eax, eax
je 0x40718a
cmp eax, 0xea
jne 0x4071ad
push esi
call fcn.00413b75
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00413b4c
mov ecx, dword [esp + 0x24]
add esp, 8
lea edx, [esp + 0x14]
mov esi, eax
push edx
lea eax, [esp + 0x1c]
push esi
push eax
push 0
push edi
push ecx
call ebx
test eax, eax
jne 0x407155
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x407198
cmp eax, 2
jne 0x4071ad
push esi
call dword [0x43ee38]
push eax
push esi
call fcn.00407c10
add esp, 0xc
mov dword [esp + 0x10], eax
push esi
call fcn.00413b75
mov edx, dword [esp + 0x20]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.00413b75
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
jne 0x4071fd
mov ebp, eax
mov eax, dword [esp + 0x48]
test eax, eax
je 0x407209
mov esi, dword [esp + 0x40]
test esi, esi
je 0x407209
push esi
call dword [0x43ee38]
push eax
push esi
call fcn.00407c10
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x4072c0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x4072de
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x4072d3
pop esi
ret
Function at 0x418114
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x418142
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x418160
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041807a
jmp 0x418160
mov eax, dword [esi + 0x14]
test eax, eax
je 0x418160
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041807a
test edi, edi
mov eax, edi
jne 0x41814a
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x411ee0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40d015
lea edi, [esi - 0xc015]
push edi
or ebp, 0xffffffff
jmp 0x411f02
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x411f09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x411ef8
mov eax, 1
add ebx, ebx
jne 0x411f1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x411f10
jne 0x411f2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411f10
xor ecx, ecx
sub eax, 3
jb 0x411f40
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x411fb2
mov ebp, eax
add ebx, ebx
jne 0x411f4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x411f58
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x411f7c
inc ecx
add ebx, ebx
jne 0x411f68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x411f5d
jne 0x411f79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x411f5d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x411f9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x411f8d
jmp 0x411efe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x411f9c
add edi, ecx
jmp 0x411efe
pop esi
mov edi, esi
mov ecx, 0x5d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x411fba
cmp byte [edi], 3
jne 0x411fba
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 0x411fbf
lea edi, [esi + 0xf000]
mov eax, dword [edi]
or eax, eax
je 0x41202e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x164cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x16554]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x411fec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1655c]
or eax, eax
je 0x412028
mov dword [ebx], eax
add ebx, 4
jmp 0x412009
call dword [esi + 0x16558]
mov ebp, dword [esi + 0x16560]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x412062
sub esp, 0xffffff80
jmp 0x4019b0

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 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x405740
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43f940
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
mov esi, ecx
lea eax, [esp + 4]
mov dword [esp + 0x1c], 0
push eax
call fcn.004175be
lea ecx, [esp + 4]
lea edx, [esp + 4]
push ecx
lea eax, [esp + 8]
push edx
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, dword [esi + 0x3d4]
push edx
mov byte [esp + 0x30], 1
call fcn.0040f460
lea eax, [esp + 4]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], 0xffffffff
call fcn.004370e2
mov ecx, dword [esp + 0x14]
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 4

Function at 0x405940
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x43f9cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov eax, dword [0x95ab14]
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x14], eax
mov cl, byte [0x95c720]
xor eax, eax
mov byte [esp + 0x2c], cl
mov ecx, 0x40
lea edi, [esp + 0x2d]
lea edx, [esp + 0x2c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push edx
push 0x104
mov dword [esp + 0x140], 0
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [0x95ab14]
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x138], 1
push ecx
lea ecx, [esp + 0x14]
call fcn.0043726b
lea edx, [esp + 0x10]
push str.3temp
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00437377
mov byte [esp + 0x138], 2
call fcn.00442016
mov edi, eax
call fcn.00442010
lea ecx, [esp + 0x18]
mov ebp, eax
call fcn.0043780e
mov ecx, dword [esp + 0xc]
push 0
push 0x1002
push ecx
lea ecx, [esp + 0x24]
mov byte [esp + 0x144], 3
call fcn.004379c0
push edi
push ebp
lea ecx, [esp + 0x20]
call fcn.00437b17
lea ecx, [esp + 0x18]
call fcn.00437bdb
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x2c], esp
push edx
call fcn.00436e57
mov ecx, esi
call fcn.00403da0
mov ecx, esi
mov byte [esi + 0x3cc], 1
call fcn.00403780
lea ecx, [esp + 0x18]
mov byte [esp + 0x138], 2
call fcn.00437903
lea ecx, [esp + 0xc]
mov byte [esp + 0x138], 1
call fcn.004370e2
lea ecx, [esp + 0x10]
mov byte [esp + 0x138], 0
call fcn.004370e2
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 0xffffffff
call fcn.004370e2
mov ecx, dword [esp + 0x130]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
add esp, 0x130
ret

Function at 0x405c80
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
lea eax, [esp]
push 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
neg eax
sbb eax, eax
neg eax
pop ecx
ret
Function at 0x4073c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43fd68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
push ebp
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x78]
mov eax, dword [esp + 0x7c]
push 0
push ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x74], 0
mov dword [edi + 0x84], eax
call fcn.00437863
lea edx, [edi + 4]
push 4
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x74], 1
call fcn.00437add
lea eax, [esp + 0xc]
push 4
push eax
lea ecx, [esp + 0x18]
call fcn.00437add
lea ecx, [esp + 0x7c]
push 4
push ecx
lea ecx, [esp + 0x18]
call fcn.00437add
push 0
push 0x1000
lea edx, [esp + 0x18]
push 1
push edx
lea ecx, [esp + 0x30]
call fcn.0043998d
mov ebp, dword [esp + 0x74]
xor esi, esi
mov byte [esp + 0x6c], 2
mov eax, dword [ebp + 8]
test eax, eax
jle 0x4074b4
mov ecx, dword [esp + 0x7c]
lea eax, [esi + 1]
and ecx, 0xffff
and eax, 0xffff
shl ecx, 0x10
or eax, ecx
mov ecx, edi
push eax
push 0xea60
call fcn.00406fd0
lea ecx, [esp + 0x20]
call fcn.00439c9e
mov edx, dword [ebp + 4]
push 0
lea ecx, [esp + 0x14]
mov eax, dword [edx + esi*4]
push eax
call fcn.00437b62
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, edi
call fcn.00407500
mov eax, dword [ebp + 8]
inc esi
cmp esi, eax
jl 0x40745c
lea ecx, [esp + 0x20]
mov byte [esp + 0x6c], 1
call fcn.00439a69
lea ecx, [esp + 0x10]
mov byte [esp + 0x6c], 0
call fcn.00437903
lea ecx, [esp + 0x78]
mov dword [esp + 0x6c], 0xffffffff
call fcn.004370e2
mov ecx, dword [esp + 0x64]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x64
ret 0xc

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

Disassembly:
push 0xffffffffffffffff
push 0x44009b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
lea ecx, [esi + 4]
call fcn.0040c6a0
xor edi, edi
lea ecx, [esi + 0x18]
mov dword [esp + 0x14], edi
call fcn.0040c6a0
mov eax, 0x443e0c
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x5c], edi
mov eax, dword [0x95ab14]
mov dword [esi + 0x6c], eax
mov dword [esi + 0x68], edi
mov dword [esi], 0x443e08
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x410550
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x41055f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x95925c]
test eax, eax
je 0x41056d
call fcn.00410400
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x410661
push ebx
push edi
mov edi, edx
shr edi, 3
xor ecx, ecx
mov cl, byte [esi]
mov ebx, eax
shr ebx, 8
sub edx, 8
xor ecx, eax
and ecx, 0xff
mov eax, dword [ecx*4 + 0x95d750]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x95d750]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x95d750]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x95d750]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x95d750]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x95d750]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x95d750]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x95d750]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x410587
pop edi
pop ebx
test edx, edx
je 0x410681
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x95d750]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x410665
not eax
pop esi
ret 0xc
Function at 0x429ddf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x95bee8
cmp edx, dword [eax]
je 0x429e01
add eax, 8
inc ecx
cmp eax, 0x95bf78
jl 0x429df2
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x95bee8]
jne 0x429f2f
mov eax, dword [0x95fbbc]
cmp eax, 1
je 0x429f09
test eax, eax
jne 0x429e32
cmp dword [0x95b434], 1
je 0x429f09
cmp edx, 0xfc
je 0x429f2f
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x429e69
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00429530
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00425d80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x429eac
lea eax, [ebp - 0x1a4]
push eax
call fcn.00425d80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x448b18
push edi
call fcn.0042b250
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00429530
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00429540
lea eax, [ebp - 0xa0]
push 0x448af8
push eax
call fcn.00429540
push dword [esi + 0x95beec]
lea eax, [ebp - 0xa0]
push eax
call fcn.00429540
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042bfbb
add esp, 0x2c
pop edi
jmp 0x429f2f
lea eax, [ebp + 8]
lea esi, [esi + 0x95beec]
push 0
push eax
push dword [esi]
call fcn.00425d80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4303f0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004221f0
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4304bb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4304bb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x43046e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x430479
or bh, 8
and edi, 0x8000000
je 0x430494
mov eax, dword [0x96135c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4304bb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4576f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4e000]
push edi
or ebp, 0xffffffff
jmp 0x457712
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x457719
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x457708
mov eax, 1
add ebx, ebx
jne 0x45772b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x457720
jne 0x45773c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x457720
xor ecx, ecx
sub eax, 3
jb 0x457750
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4577c2
mov ebp, eax
add ebx, ebx
jne 0x45775b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x457768
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45778c
inc ecx
add ebx, ebx
jne 0x457778
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45776d
jne 0x457789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45776d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4577ac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45779d
jmp 0x45770e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4577ac
add edi, ecx
jmp 0x45770e
pop esi
lea edi, [esi + 0x55000]
mov eax, dword [edi]
or eax, eax
je 0x45780b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x599f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x59a64]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4577c9
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x59a6c]
or eax, eax
je 0x457805
mov dword [ebx], eax
add ebx, 4
jmp 0x4577e6
call dword [esi + 0x59a68]
mov ebp, dword [esi + 0x59a70]
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 0x45783f
sub esp, 0xffffff80
jmp 0x406dc0

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