joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a0df0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f16a6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1011d1c0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x18]
mov dword [esi], 1
mov word [esi + 4], 0x101
xorps xmm0, xmm0
mov byte [esi + 6], 0
mov dword [esi + 8], 0xc8
mov dword [esi + 0xc], 0x50
mov dword [esi + 0x10], 0x1010101
mov dword [esi + 0x14], 3
push 0xe
movups xmmword [ecx], xmm0
push str.Infected_Items
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.1001f000
mov dword [ebp - 4], 0
lea ecx, [esi + 0x34]
mov byte [esi + 0x30], 1
xorps xmm0, xmm0
push 6
movups xmmword [ecx], xmm0
push str._SPAM_
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.1001f000
mov byte [ebp - 4], 1
lea ecx, [esi + 0x50]
mov word [esi + 0x4c], 1
xorps xmm0, xmm0
push 0
movups xmmword [ecx], xmm0
push 0x10100b94
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
call fcn.1001f000
mov byte [ebp - 4], 2
mov dword [esi + 0x68], 0x1010100
mov dword [esi + 0x6c], 0x1010101
mov dword [esi + 0x70], 0x64
mov byte [esi + 0x74], 1
mov dword [esi + 0x78], 1
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100bd4a5
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x100bd4cc
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x100bd4cf
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.100bd481
pop esi
leave
ret 8

Function at 0x100d2bb2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100d2bf1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100d2bf1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100d2bf1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x100d2bf1
cmp dword [ecx + 0x74], 0xe
jbe 0x100d2bf1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x100d4c1a
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100fb64c
push 0x100fb644
push str.FlsAlloc
push 0x1f
call fcn.100d4a85
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100d4c4e
push dword [ebp + 8]
mov ecx, esi
call dword [0x100f5330]
call esi
jmp 0x100d4c54
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x100d4c98
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100fb65c
push 0x100fb654
push str.FlsGetValue
push 0x21
call fcn.100d4a85
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100d4ccf
push dword [ebp + 8]
mov ecx, esi
call dword [0x100f5330]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x100d4cd7
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100fb664
push 0x100fb65c
push str.FlsSetValue
push 0x22
call fcn.100d4a85
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100d4d11
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x100f5330]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x100dae20
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 0x100daebd
push ebx
push esi
call fcn.100dade9
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.100d8838
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x100dae6a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100daebc
push edi
push eax
call fcn.100d3a91
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x100dae8a
call fcn.100d3a57
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100daebb
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.100d8838
add esp, 0x20
test eax, eax
jne 0x100daea9
push edi
call fcn.100d3a57
jmp 0x100daeb1
push ebx
call fcn.100d3a57
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 0x100daec0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x100daed1
pop esi
ret
push ebx
push edi
push esi
call fcn.100dade9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.100d3a91
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x100daef9
push ebx
push esi
push edi
call fcn.100c0760
add esp, 0xc
push 0
call fcn.100d3a57
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x100db2c9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100daf0e

Function at 0x100dd72f
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100d44e5
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100dd79e
cmp esi, dword [ebp - 4]
je 0x100dd799
cmp dword [ebp + 0xc], 0
je 0x100dd799
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100dd776
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.100dd26c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x100dd7a0
xor eax, eax
inc eax
jmp 0x100dd7a0
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x100dd805
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1011d1c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100d44e5
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100d44e5
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x100dd87c
cmp word [ecx], dx
je 0x100dd87c
mov eax, dword [0x100fe404]
push edi
dec eax
push eax
push 0x100fe2f0
call fcn.100dd7a4
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x100dd8ef
cmp word [eax], dx
je 0x100dd8ef
mov eax, dword [edi]
test eax, eax
je 0x100dd8a0
cmp word [eax], dx
je 0x100dd8a0
lea eax, [ebp - 0x10]
push eax
call fcn.100dd172
jmp 0x100dd8a9
lea eax, [ebp - 0x10]
push eax
call fcn.100dd20d
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x100dd919
mov eax, dword [0x100fe2ec]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100fdfe0
call fcn.100dd7a4
add esp, 0xc
test al, al
je 0x100dd919
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x100dd8e4
cmp word [eax], di
je 0x100dd8e4
lea eax, [ebp - 0x10]
push eax
call fcn.100dd172
pop ecx
jmp 0x100dd91b
lea eax, [ebp - 0x10]
push eax
call fcn.100dd20d
jmp 0x100dd8e1
mov eax, dword [edi]
test eax, eax
je 0x100dd906
cmp word [eax], dx
je 0x100dd906
lea eax, [ebp - 0x10]
push eax
call fcn.100dd127
pop ecx
jmp 0x100dd919
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x100dd9e4
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.100dd629
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100dd9e4
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x100dd9e4
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x100dd9e4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x100dd971
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.100d4e17
test ebx, ebx
je 0x100dd9df
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.100d4e17
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100dd9e4
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x100dd9e4
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.100e1405
add esp, 0x10
xor eax, eax
inc eax
jmp 0x100dd9e6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100be435
leave
ret
Function at 0x100e3060
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100e308d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100e308d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100f14fa
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
xor esi, esi
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + edi + 0x78]
add eax, edi
mov ecx, dword [eax + 0x20]
mov ebx, dword [eax + 0x1c]
add ecx, edi
mov ebp, dword [eax + 0x24]
add ebx, edi
mov eax, dword [eax + 0x18]
add ebp, edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
test eax, eax
je 0x100f154b
mov ecx, dword [ecx + esi*4]
add ecx, edi
call fcn.100f14b1
cmp eax, dword [esp + 0x10]
je 0x100f1555
mov ecx, dword [esp + 0x18]
inc esi
cmp esi, dword [esp + 0x14]
jb 0x100f1530
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
movzx eax, word [ebp + esi*2]
mov eax, dword [ebx + eax*4]
add eax, edi
jmp 0x100f154d
Function at 0x517070
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc0000]
push edi
jmp 0x51708a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x517091
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x517080
mov eax, 1
add ebx, ebx
jne 0x5170a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5170b4
jne 0x5170d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5170d3
dec eax
add ebx, ebx
jne 0x5170c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x517098
add ebx, ebx
jne 0x5170cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x517125
xor ecx, ecx
sub eax, 3
jb 0x5170eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51715a
sar eax, 1
mov ebp, eax
jmp 0x5170f6
add ebx, ebx
jne 0x5170f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5170c4
inc ecx
add ebx, ebx
jne 0x517104
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5170c4
add ebx, ebx
jne 0x517111
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x517106
jne 0x517122
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x517106
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x517144
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x517136
jmp 0x517086
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x517144
add edi, ecx
jmp 0x517086
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x517162
cmp byte [edi], 0x11
jne 0x517162
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 0x517167
lea edi, [esi + 0x110000]
mov eax, dword [edi]
or eax, eax
je 0x5171df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x155214]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x155390]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x517194
mov ecx, edi
jns 0x5171c3
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 + 0x155394]
or eax, eax
je 0x5171d9
mov dword [ebx], eax
add ebx, 4
jmp 0x5171b1
call dword [esi + 0x1553a4]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x517210
cmp al, 0xef
ja 0x517203
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5171e5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5171f2
mov ebp, dword [esi + 0x155398]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x517244
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x547700
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xea000]
push edi
jmp 0x54771a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x547721
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x547710
mov eax, 1
add ebx, ebx
jne 0x547733
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x547744
jne 0x547763
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x547763
dec eax
add ebx, ebx
jne 0x547750
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x547728
add ebx, ebx
jne 0x54775f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5477b5
xor ecx, ecx
sub eax, 3
jb 0x54777b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5477ea
sar eax, 1
mov ebp, eax
jmp 0x547786
add ebx, ebx
jne 0x547786
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x547754
inc ecx
add ebx, ebx
jne 0x547794
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x547754
add ebx, ebx
jne 0x5477a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x547796
jne 0x5477b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x547796
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5477d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5477c6
jmp 0x547716
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5477d4
add edi, ecx
jmp 0x547716
pop esi
mov edi, esi
mov ecx, 0x40f0
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5477f2
cmp byte [edi], 0x11
jne 0x5477f2
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 0x5477f7
lea edi, [esi + 0x140000]
mov eax, dword [edi]
or eax, eax
je 0x54786f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1a9c10]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1a9d8c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x547824
mov ecx, edi
jns 0x547853
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 + 0x1a9d90]
or eax, eax
je 0x547869
mov dword [ebx], eax
add ebx, 4
jmp 0x547841
call dword [esi + 0x1a9da0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5478a0
cmp al, 0xef
ja 0x547893
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x547875
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x547882
mov ebp, dword [esi + 0x1a9d94]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
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 0x5478d4
sub esp, 0xffffff80
jmp 0x420577
Function at 0x401ca0
Capabilities:
Check if process is running under wine
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
lea eax, [ebp - 0xa0]
mov esi, ecx
push ebx
mov ebx, edx
sub esp, 0xcc
mov dword [edx], 0x320
mov dword [ecx], 0x258
mov dword [esp + 8], eax
mov dword [esp + 4], global_desktop_keyW
mov dword [esp], 0x80000001
mov dword [ebp - 0x9c], pe_nt_image_headers32
call sym._RegOpenKeyW_12
xor edx, edx
sub esp, 0xc
test eax, eax
je 0x401cf9
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0xac], eax
lea eax, [ebp - 0x9c]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x98]
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0xa0]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call sym._RegQueryValueExW_24
mov edx, dword [ebp - 0xac]
sub esp, 0x18
test eax, eax
je 0x401d5f
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xac], edx
mov dword [esp], eax
call sym._RegCloseKey_4
mov edx, dword [ebp - 0xac]
push eax
jmp 0x401cef
mov edx, ebx
mov ecx, esi
lea eax, [ebp - 0x98]
call dbg.parse_size
mov edx, 1
test eax, eax
jne 0x401d42
mov dword [esi], 0
mov dword [ebx], 0
jmp 0x401d42

Function at 0x401de0
Capabilities:
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, ecx
sub esp, 0x2c
cmp word [eax], 0
mov dword [ebp - 0x20], edx
je 0x401ed0
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401e00
sub eax, esi
mov edx, eax
sar eax, 1
mov dword [ebp - 0x1c], eax
cmp ebx, 0xffffffff
je 0x401ea8
mov eax, dword [ebp - 0x1c]
lea ecx, [eax + ebx]
lea ecx, [ecx + ecx + 4]
mov dword [esp + 4], 0
mov dword [esp + 8], ecx
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x24], edx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov edi, eax
test eax, eax
je 0x401e98
mov edx, dword [ebp - 0x24]
mov dword [esp + 4], esi
mov dword [esp], eax
mov dword [esp + 8], edx
call sym._memcpy
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov eax, 0x5c
mov word [edi + edx], ax
lea eax, [edi + edx + 2]
lea edx, [ebx + ebx]
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym._memcpy
mov eax, dword [ebp - 0x1c]
xor edx, edx
lea eax, [eax + ebx + 1]
mov word [edi + eax*2], dx
lea esp, [ebp - 0xc]
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [ebp - 0x20]
cmp word [ebx], 0
je 0x401ede
lea esi, [esi]
add ebx, 2
cmp word [ebx], 0
jne 0x401eb8
sub ebx, dword [ebp - 0x20]
sar ebx, 1
jmp 0x401e1b
mov dword [ebp - 0x1c], 0
xor edx, edx
jmp 0x401e12
mov ecx, dword [ebp - 0x1c]
xor ebx, ebx
jmp 0x401e21
Function at 0x401ef0
Capabilities:
Query environment variable

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
push edi
push esi
lea esi, [ebp - 0x630]
push ebx
mov ebx, eax
sub esp, 0x64c
mov eax, dword [eax]
mov word [ebp - 0x630], dx
lea edx, [ebp - 0x634]
mov dword [esp + 0xc], edx
mov dword [ebp - 0x638], 0
mov dword [esp + 8], 0x104
mov dword [esp + 4], esi
mov dword [esp], ebx
call dword [eax + 0x40]
lea edx, [ebp - 0x428]
mov edi, dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
sub esp, 0x10
mov dword [esp + 8], 0x104
mov dword [esp + 4], edx
mov dword [esp], esi
call edi
sub esp, 0xc
cmp word [ebp - 0x428], 0
jne 0x401f78
mov eax, dword [ebp - 0x638]
test eax, eax
je 0x401fb7
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x638]
lea edx, [ebp - 0x428]
mov dword [esp + 0x10], 1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x634]
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
mov dword [esp], edx
call sym._ExtractIconExW_20
mov eax, dword [ebp - 0x638]
sub esp, 0x14
test eax, eax
jne 0x401f6c
xor eax, eax
mov word [ebp - 0x630], ax
mov eax, dword [ebx]
mov dword [esp + 4], esi
mov dword [esp], ebx
lea ebx, [ebp - 0x220]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x104
call dword [eax + 0xc]
sub esp, 0x14
mov dword [esp + 4], ebx
mov dword [esp], esi
mov dword [esp + 8], 0x104
call edi
lea eax, [ebp - 0x638]
sub esp, 0xc
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x634]
mov dword [esp], ebx
mov dword [esp + 0x10], 1
mov dword [esp + 0xc], 0
mov dword [esp + 4], eax
call sym._ExtractIconExW_20
mov eax, dword [ebp - 0x638]
sub esp, 0x14
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x402360
Capabilities:
Enumerate files on windows
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x26c
cmp word [eax], 0
je 0x402381
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x402378
sub eax, ebx
mov ecx, 0x2a
sar eax, 1
mov edx, eax
mov eax, global_lnkW
jmp 0x40239c
movzx ecx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x402398
sub eax, 0x413d40
mov dword [esp + 4], 0
sar eax, 1
lea eax, [edx + eax + 1]
add eax, eax
mov dword [esp + 8], eax
mov ecx, dword fs:[0x18]
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, eax
sub esp, 0xc
xor eax, eax
test esi, esi
je 0x40248a
lea esi, [esi]
movzx edx, word [ebx + eax]
mov word [esi + eax], dx
add eax, 2
test dx, dx
jne 0x4023e8
mov dword [esp + 4], global_lnkW
mov dword [esp], esi
call dbg.lstrcatW
lea eax, [ebp - 0x268]
sub esp, 8
mov dword [esp + 4], eax
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_FindFirstFileW]
sub esp, 8
mov edi, eax
cmp eax, 0xffffffff
je 0x402466
lea esi, [esi]
nop
mov ecx, 0xffffffff
lea edx, [ebp - 0x23c]
mov eax, ebx
call dbg.add_launcher
lea eax, [ebp - 0x268]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
sub esp, 8
test eax, eax
jne 0x402430
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FindClose]
push eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret