joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002030
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.100017ee
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.100017a3
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
invalid
movsd dword es:[edi], dword [esi]
Function at 0x1000c950
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1000cb00
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1000ca1d
mov edx, dword [ebp - 4]
cmp edx, dword [0x10033004]
jb 0x1000c99a
mov eax, dword [ebp - 4]
cmp eax, dword [0x10033008]
ja 0x1000c99a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000c96a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10010760
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1000c9c0
jmp 0x1000ca1d
cmp dword [ebp - 0x14], 0x10000
jne 0x1000ca03
cmp dword [ebp - 0x18], 0x10000
jb 0x1000ca03
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000c9f6
mov eax, dword [ebp - 8]
jmp 0x1000ca1f
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000ca18
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1000cb00
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000c96a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1000ca30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1000cb30
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000caf5
mov edx, dword [ebp - 4]
cmp edx, dword [0x10033004]
jb 0x1000ca75
mov eax, dword [ebp - 4]
cmp eax, dword [0x10033008]
ja 0x1000ca75
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1000ca45
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call fcn.10010760
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1000ca9b
jmp 0x1000caf5
cmp dword [ebp - 0x14], 0x10000
jne 0x1000cade
cmp dword [ebp - 0x18], 0x10000
jb 0x1000cade
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000cad1
mov eax, dword [ebp - 8]
jmp 0x1000caf7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000caf0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1000cb30
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1000ca45
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x1001d14a
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 0x1001d1e7
push ebx
push esi
call fcn.1001d113
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.1001d05c
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001d194
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d1e6
push edi
push eax
call fcn.10019c55
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001d1b4
call fcn.10019c1b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001d1e5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001d05c
add esp, 0x20
test eax, eax
jne 0x1001d1d3
push edi
call fcn.10019c1b
jmp 0x1001d1db
push ebx
call fcn.10019c1b
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 0x1001d452
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002ce90
push 0x1002ce88
push str.FlsAlloc
push 0x1e
call fcn.1001d370
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d486
push dword [ebp + 8]
mov ecx, esi
call dword [0x100251dc]
call esi
jmp 0x1001d48c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001d4d0
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1002cea0
push 0x1002ce98
push str.FlsGetValue
push 0x20
call fcn.1001d370
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1001d507
push dword [ebp + 8]
mov ecx, esi
call dword [0x100251dc]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10024020
Capabilities:
Parse pe header

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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x118000]
push edi
jmp 0x57795a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x577961
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x577950
mov eax, 1
add ebx, ebx
jne 0x577973
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x577984
jne 0x5779a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5779a3
dec eax
add ebx, ebx
jne 0x577990
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x577968
add ebx, ebx
jne 0x57799f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5779f5
xor ecx, ecx
sub eax, 3
jb 0x5779bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x577a2a
sar eax, 1
mov ebp, eax
jmp 0x5779c6
add ebx, ebx
jne 0x5779c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x577994
inc ecx
add ebx, ebx
jne 0x5779d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x577994
add ebx, ebx
jne 0x5779e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5779d6
jne 0x5779f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5779d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x577a14
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x577a06
jmp 0x577956
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x577a14
add edi, ecx
jmp 0x577956
pop esi
mov edi, esi
mov ecx, 0x31fe
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x577a32
cmp byte [edi], 0x17
jne 0x577a32
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 0x577a37
lea edi, [esi + 0x175000]
mov eax, dword [edi]
or eax, eax
je 0x577aa6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x177978]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x177a90]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x577a64
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x177a98]
or eax, eax
je 0x577aa0
mov dword [ebx], eax
add ebx, 4
jmp 0x577a81
call dword [esi + 0x177a94]
mov ebp, dword [esi + 0x177a9c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x577ada
sub esp, 0xffffff80
jmp 0x4b365c
Function at 0x45c990
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x3a000]
push edi
jmp 0x45c9aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x45c9b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x45c9a0
mov eax, 1
add ebx, ebx
jne 0x45c9c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x45c9b8
jne 0x45c9d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45c9b8
xor ecx, ecx
sub eax, 3
jb 0x45c9e8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45ca5a
mov ebp, eax
add ebx, ebx
jne 0x45c9f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x45ca00
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x45ca24
inc ecx
add ebx, ebx
jne 0x45ca10
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x45ca05
jne 0x45ca21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x45ca05
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x45ca44
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x45ca35
jmp 0x45c9a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x45ca44
add edi, ecx
jmp 0x45c9a6
pop esi
mov edi, esi
mov ecx, 0x1b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x45ca62
cmp byte [edi], 0
jne 0x45ca62
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 0x45ca67
lea edi, [esi + 0x5a000]
mov eax, dword [edi]
or eax, eax
je 0x45cad6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x62bac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x62c18]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x45ca94
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x62c20]
or eax, eax
je 0x45cad0
mov dword [ebx], eax
add ebx, 4
jmp 0x45cab1
call dword [esi + 0x62c1c]
mov ebp, dword [esi + 0x62c24]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x45cb0a
sub esp, 0xffffff80
jmp 0x4019e0
Function at 0x4e6d40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x96000]
lea eax, [edi + 0xa933c]
push dword [eax]
mov dword [eax], 0xc6060395
push eax
push edi
jmp 0x4e6d6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e6d71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e6d60
mov eax, 1
add ebx, ebx
jne 0x4e6d83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e6d94
jne 0x4e6db3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e6db3
dec eax
add ebx, ebx
jne 0x4e6da0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e6d78
add ebx, ebx
jne 0x4e6daf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4e6e05
xor ecx, ecx
sub eax, 3
jb 0x4e6dcb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e6e3a
sar eax, 1
mov ebp, eax
jmp 0x4e6dd6
add ebx, ebx
jne 0x4e6dd6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e6da4
inc ecx
add ebx, ebx
jne 0x4e6de4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e6da4
add ebx, ebx
jne 0x4e6df1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e6de6
jne 0x4e6e02
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e6de6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e6e24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e6e16
jmp 0x4e6d66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e6e24
add edi, ecx
jmp 0x4e6d66
pop esi
pop edi
pop eax
mov dword [edi], eax
lea edi, [esi + 0xe3000]
mov eax, dword [edi]
or eax, eax
je 0x4e6e90
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xebcdc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xebdd0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e6e45
mov ecx, edi
jns 0x4e6e74
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 + 0xebdd8]
or eax, eax
je 0x4e6e8a
mov dword [ebx], eax
add ebx, 4
jmp 0x4e6e62
call dword [esi + 0xebdd4]
mov ebp, dword [esi + 0xebddc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x31f]
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 0x4e6ec4
sub esp, 0xffffff80
jmp 0x401564
Function at 0x412120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
jmp 0x41213a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x412141
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x412130
mov eax, 1
add ebx, ebx
jne 0x412153
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x412148
jne 0x412164
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412148
xor ecx, ecx
sub eax, 3
jb 0x412178
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4121ea
mov ebp, eax
add ebx, ebx
jne 0x412183
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x412190
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4121b4
inc ecx
add ebx, ebx
jne 0x4121a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x412195
jne 0x4121b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x412195
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4121d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4121c5
jmp 0x412136
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4121d4
add edi, ecx
jmp 0x412136
pop esi
mov edi, esi
mov ecx, 0x114
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4121f2
cmp byte [edi], 2
jne 0x4121f2
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 0x4121f7
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x412266
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1203c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x412224
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12044]
or eax, eax
je 0x412260
mov dword [ebx], eax
add ebx, 4
jmp 0x412241
call dword [esi + 0x12040]
mov ebp, dword [esi + 0x12048]
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
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x122c1]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4122b2
sub esp, 0xffffff80
jmp 0x4012e0
Function at 0x10007760
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x100077b8
cmp byte [esi + ebx - 1], 0xa
je 0x1000778c
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x1001a084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret
Function at 0x10007d60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x1001a094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x10007f20
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x1001a094]
movzx eax, al
bt eax, esi
jae 0x10007f80
mov ecx, dword [0x1001a084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x10007e25
test byte [0x100090c8], 8
jne 0x10007ec0
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x100090d8], 8
jne 0x10007e70
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10007df4
cmp esi, 3
jbe 0x10007e30
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x10015d80]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10007df4
mov ecx, dword [0x1001a094]
test ecx, ecx
je 0x10007f60
mov dword [esp], 0x100090d8
call dword [0x1001a094]
test al, 8
je 0x10007dcb
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10007dcb
mov ebx, dword [0x1001a094]
test ebx, ebx
je 0x10007f40
mov dword [esp], 0x100090c8
call dword [0x1001a094]
test al, 8
je 0x10007db6
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10007dbe
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x1001a094
call sym._load_func.part.0
jmp 0x10007d7d
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x1001a094
call sym._load_func.part.0
jmp 0x10007eca
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x1001a094
call sym._load_func.part.0
jmp 0x10007e7e
mov eax, 0xffffffff
jmp 0x10007e25
Function at 0x10008130
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x214
mov eax, dword [0x1001a0a0]
test eax, eax
je 0x100081e8
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x10008170
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x214]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x1000815c
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x1000821d
mov dword [esp + 4], str.AtlCreateRegistrar
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x1001a0a0], eax
sub esp, 8
test eax, eax
jne 0x1000814d
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x1000815e
Function at 0x10008230
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [ebp - 0x10], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x10]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x10], eax
sub esp, 8
test ebx, ebx
je 0x100083b1
mov eax, dword [esi]
test eax, eax
je 0x100083a0
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
mov dword [ebp - 0x1c], edx
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [ebp - 0x18], ecx
mov ecx, eax
mov dword [ebp - 0x14], eax
mov dword [esp + 8], ecx
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_HeapAlloc]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x100083b5
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x10008398
call dword [edx + 0x28]
sub esp, 8
mov dword [esi + 8], eax
mov dword [esp + 8], edi
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]
mov eax, dword [esi + 8]
sub esp, 0xc
not eax
shr eax, 0x1f
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
call dword [edx + 0x24]
sub esp, 8
jmp 0x10008359
mov edx, esi
mov eax, edi
call sym._create_registrar
test eax, eax
jne 0x10008296
xor eax, eax
jmp 0x10008388
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x10008388