joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100011c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov dword [0xd415b8], 1
sub esp, 0x1c
mov dword [0xd415bc], 0x7fffffff
mov dword [0xb6af54], 1
mov dword [0xb6af5c], 1
cmp dword [0x1002b53c], 0
jne 0x10001257
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x1002b53c
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x10001257
push esi
mov esi, dword [0x1002b530]
mov dword [0x1002b520], eax
mov dword [0x1002b528], eax
mov dword [0x1002b534], eax
push edi
test esi, esi
je 0x1000124e
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop dword [eax]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
test eax, eax
je 0x10001333
mov esi, dword [esi + 4]
test esi, esi
jne 0x10001230
xor eax, eax
pop edi
mov dword [0x1002b540], eax
pop esi
sub esp, 0xc
mov edx, 0x10003470
mov ecx, 0x1002a900
call fcn.100068a0
sub esp, 0xc
mov edx, 0x10003860
mov ecx, 0x1002a8fc
call fcn.100068a0
sub esp, 0xc
mov edx, 0x100034d0
mov ecx, 0x1002a910
call fcn.100068a0
sub esp, 0xc
mov edx, 0x10003610
mov ecx, 0x1002a908
call fcn.100068a0
sub esp, 0xc
mov edx, 0x10003750
mov ecx, 0x1002a904
call fcn.100068a0
sub esp, 0xc
mov edx, 0x10003770
mov ecx, 0x1002a90c
call fcn.100068a0
sub esp, 0xc
mov edx, 0x100038b0
mov ecx, 0x1002a8f4
call fcn.100068a0
sub esp, 0xc
mov edx, 0x100038e0
mov ecx, 0x1002a8f8
call fcn.100068a0
sub esp, 0xc
mov edx, 0x10004ef0
mov ecx, 0x1002a918
call fcn.100068a0
sub esp, 0xc
mov edx, 0x10004fb0
mov ecx, 0x1002a91c
call fcn.100068a0
call fcn.10005610
mov eax, dword [0x1002b594]
mov dword [esp], 0x10005be0
cmp eax, dword [0x1002b598]
je 0x1000133e
mov dword [eax], 0x10005be0
add dword [0x1002b594], 4
jmp 0x10001348
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10001250
lea ecx, [esp]
push ecx
push eax
call fcn.100047d0
call fcn.10002140
mov eax, dword [0x1002b5b8]
mov dword [esp + 4], 0x1002b518
mov dword [esp + 8], str.cameraFov
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 0x10023c98
mov dword [esp + 0x18], 0x10004e10
cmp eax, dword [0x1002b5bc]
je 0x100013bc
mov dword [eax], 0x1002b518
mov dword [eax + 4], str.cameraFov
mov dword [eax + 8], 0
mov dword [eax + 0xc], 1
mov dword [eax + 0x10], 0x10023c98
mov dword [eax + 0x14], 0x10004e10
add dword [0x1002b5b8], 0x18
jmp 0x100013c7
lea ecx, [esp + 4]
push ecx
push eax
call fcn.10004b00
mov eax, dword [0x1002b594]
mov dword [esp], 0x10004d70
cmp eax, dword [0x1002b598]
je 0x100013ea
mov dword [eax], 0x10004d70
add dword [0x1002b594], 4
jmp 0x100013f4
lea ecx, [esp]
push ecx
push eax
call fcn.100047d0
sub esp, 0xc
mov edx, 0x10004e70
mov ecx, 0x1002a914
call fcn.100068a0
mov eax, dword [0x1002b594]
mov dword [esp], 0x10005e20
cmp eax, dword [0x1002b598]
je 0x10001429
mov dword [eax], 0x10005e20
add dword [0x1002b594], 4
jmp 0x10001433
lea ecx, [esp]
push ecx
push eax
call fcn.100047d0
call fcn.10006440
mov eax, dword [0x1002b594]
mov dword [esp], 0x10001180
cmp eax, dword [0x1002b598]
je 0x1000145d
mov dword [eax], 0x10001180
add dword [0x1002b594], 4
add esp, 0x1c
ret
lea ecx, [esp]
push ecx
push eax
call fcn.100047d0
add esp, 0x1c
ret
Function at 0x10004fd0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001d8cd
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x1002a040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x30], esi
push edx
mov dword [ebp - 0x30], esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10005077
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x10005071
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
mov dword [ebp - 0x30], edx
test edx, edx
je 0x10005071
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x2c], eax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10005033
sub ecx, dword [ebp - 0x2c]
push 0
push 0
push 0
sar ecx, 1
push 0
lea eax, [ecx + 1]
push eax
push edx
push 0x80
push 0xfde9
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x100050b9
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000764c
mov esp, ebp
pop ebp
ret
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
push ecx
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.10005270
cmp dword [ebp - 0x14], 0xf
lea eax, [ebp - 0x28]
push 0
cmova eax, dword [ebp - 0x28]
push 0
push dword [ebp - 0x2c]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push 0x80
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.10003a20
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x1000509c
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000514e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000515d
push ecx
push edx
call fcn.10007a5e
add esp, 8
jmp 0x1000509c
call fcn.1000fad2
int3
Function at 0x10005170
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov ebp, edx
test edi, edi
je 0x10005247
cmp byte [edi], 0
je 0x10005247
mov esi, edi
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x10005191
push 0
sub esi, ecx
push 0
lea eax, [esi + 1]
push eax
push edi
push 0
push 0xfde9
mov dword [esp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [esp + 0x10], eax
add eax, eax
push eax
push 2
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x10005224
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x1000521d
push dword [esp + 0x10]
push ebx
push dword [esp + 0x1c]
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x18]
xor ecx, ecx
push esi
mov word [eax + ebx], cx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1000521d
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x1000522e
call dword [sym.imp.USER32.dll_CloseClipboard]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0xc
ret
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0xc
ret
push ebp
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x10005224
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
setne bl
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0xc
ret
Function at 0x10005eb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100281d0
push 0x10008b50
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x1002a040]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x10005f60
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x10005f60
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x10005f60
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x10005f60
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10006210
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x1c
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, edx
push esi
mov esi, ecx
push edi
lea ecx, [esi - 0x10000]
movzx eax, cx
mov edi, ecx
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
jbe 0x100062db
nop dword [eax + eax]
lea eax, [edi - 0x70000000]
cmp eax, 0x10000000
ja 0x10006255
sub edi, 0x8000000
jmp 0x100062d3
push 0x1c
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [esp + 0x1c], xmm0
movq qword [esp + 0x2c], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100062db
cmp dword [esp + 0x20], 0x10000
jne 0x100062bd
cmp dword [esp + 0x1c], 0x10000
jb 0x100062bd
push 0x40
push 0x3000
push 0x10000
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x10006397
call ebp
cmp eax, 0x677
je 0x100062db
sub edi, 0x10000
jmp 0x100062d3
mov ecx, dword [esp + 0x14]
add ecx, 0xffff0000
mov edi, ecx
movzx eax, di
sub edi, eax
test eax, eax
cmove edi, ecx
cmp edi, ebx
ja 0x10006240
movzx eax, si
test eax, eax
je 0x100062ea
sub esi, eax
add esi, 0x10000
mov edi, dword [esp + 0x30]
cmp esi, edi
jae 0x10006395
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
nop dword [eax]
lea eax, [esi - 0x70000000]
cmp eax, 0x10000000
ja 0x10006315
add esi, 0x8000000
jmp 0x1000638d
push 0x1c
lea eax, [esp + 0x14]
mov dword [esp + 0x2c], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [esp + 0x1c], xmm0
movq qword [esp + 0x2c], xmm0
call ebx
test eax, eax
je 0x10006395
cmp dword [esp + 0x20], 0x10000
mov ecx, dword [esp + 0x1c]
jne 0x10006377
cmp ecx, 0x10000
jb 0x10006377
push 0x40
push 0x3000
push 0x10000
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x10006397
call ebp
cmp eax, 0x677
je 0x10006395
add esi, 0x10000
jmp 0x1000638d
mov esi, dword [esp + 0x10]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x1000638d
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x10006300
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x1000ffc3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10010002
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10010002
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10010002
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10010002
cmp dword [ecx + 0x74], 0xe
jbe 0x10010002
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10013fb6
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 0x10014053
push ebx
push esi
call fcn.10013f7f
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.10013f13
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10014000
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10014052
push edi
push eax
call fcn.10010d20
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10014020
call fcn.10010ce6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10014051
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10013f13
add esp, 0x20
test eax, eax
jne 0x1001403f
push edi
call fcn.10010ce6
jmp 0x10014047
push ebx
call fcn.10010ce6
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 0x100142c0
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10020d80
push 0x10020d78
push str.FlsAlloc
push 0x1f
call fcn.100141dc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100142f4
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001e174]
call esi
jmp 0x100142fa
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1001433e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10020d90
push 0x10020d88
push str.FlsGetValue
push 0x21
call fcn.100141dc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10014375
push dword [ebp + 8]
mov ecx, esi
call dword [0x1001e174]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1001437d
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10020d98
push 0x10020d90
push str.FlsSetValue
push 0x22
call fcn.100141dc
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100143b7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1001e174]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1001b610
Capabilities:
Parse pe header

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

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xe000]
push edi
jmp 0x414dfa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x414e01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414df0
mov eax, 1
add ebx, ebx
jne 0x414e13
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x414e24
jne 0x414e43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414e43
dec eax
add ebx, ebx
jne 0x414e30
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x414e08
add ebx, ebx
jne 0x414e3f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x414e95
xor ecx, ecx
sub eax, 3
jb 0x414e5b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x414eca
sar eax, 1
mov ebp, eax
jmp 0x414e66
add ebx, ebx
jne 0x414e66
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414e34
inc ecx
add ebx, ebx
jne 0x414e74
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x414e34
add ebx, ebx
jne 0x414e81
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x414e76
jne 0x414e92
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x414e76
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x414eb4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x414ea6
jmp 0x414df6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x414eb4
add edi, ecx
jmp 0x414df6
pop esi
mov edi, esi
mov ecx, 0xb800
jmp 0x414f05
mov al, byte [edi]
inc edi
cmp al, 0x80
jb 0x414ee5
cmp al, 0x8f
ja 0x414ee5
cmp byte [edi - 2], 0xf
je 0x414eeb
sub al, 0xe8
cmp al, 1
ja 0x414f0f
cmp ecx, 4
jb 0x414f14
mov eax, dword [edi]
sub al, 5
jne 0x414f0f
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
sub ecx, 4
stosd dword es:[edi], eax
sub ecx, 1
jb 0x414f14
mov al, byte [edi]
inc edi
jmp 0x414ee5
sub ecx, 1
jae 0x414ed4
lea edi, [esi + 0x12000]
mov eax, dword [edi]
or eax, eax
je 0x414f5c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1506c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x414f1a
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15074]
or eax, eax
je 0x414f56
mov dword [ebx], eax
add ebx, 4
jmp 0x414f37
call dword [esi + 0x15070]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x414f8d
cmp al, 0xef
ja 0x414f80
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x414f62
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x414f6f
mov ebp, dword [esi + 0x15078]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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 0x414fc1
sub esp, 0xffffff80
jmp 0x405dd2
Function at 0x40d84d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42c310
cmp edx, dword [eax]
je 0x40d86f
add eax, 8
inc ecx
cmp eax, 0x42c3a0
jl 0x40d860
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42c310]
jne 0x40d99d
mov eax, dword [0x42f524]
cmp eax, 1
je 0x40d977
test eax, eax
jne 0x40d8a0
cmp dword [0x42c08c], 1
je 0x40d977
cmp edx, 0xfc
je 0x40d99d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40d8d7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00410980
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00410870
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40d91a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00410870
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4244a4
push edi
call fcn.00410a70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00410980
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00410990
lea eax, [ebp - 0xa0]
push 0x424484
push eax
call fcn.00410990
push dword [esi + 0x42c314]
lea eax, [ebp - 0xa0]
push eax
call fcn.00410990
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004108eb
add esp, 0x2c
pop edi
jmp 0x40d99d
lea eax, [ebp + 8]
lea esi, [esi + 0x42c314]
push 0
push eax
push dword [esi]
call fcn.00410870
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 0x4178ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4178ee
call fcn.0041c9a2
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
cmp eax, edi
je 0x4178ee
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4178e5
xor eax, eax
jmp 0x4178f6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004178fc
pop edi
pop esi
pop ebx
ret 4

Function at 0x41d508
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 0x41d536
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x41d554
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0041d46e
jmp 0x41d554
mov eax, dword [esi + 0x14]
test eax, eax
je 0x41d554
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0041d46e
test edi, edi
mov eax, edi
jne 0x41d53e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4010d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4010e9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401124
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401120
lea ebx, [ebx]
cmp esi, eax
jae 0x401124
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401110
cmp esi, eax
jb 0x40112a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x406560
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4065ce
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x40659f
cmp eax, 2
jne 0x4065ba
mov eax, dword [esp]
test esi, esi
je 0x4065c8
test eax, eax
je 0x4065c3
test al, 1
jne 0x4065ba
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4065c8
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x406aa0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4932a8
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x4b9a40]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x18]
cmp dword [eax - 4], 1
jle 0x406ae4
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x1c]
call fcn.004026f0
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
mov eax, dword [esp + 0x18]
setne cl
mov esi, ecx
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004613f7
add esp, 8
test eax, eax
jl 0x406b5b
mov ecx, dword [esp + 0x18]
cmp eax, dword [ecx - 8]
jg 0x406b5b
mov dword [ecx - 0xc], eax
mov ecx, dword [esp + 0x18]
xor edx, edx
mov word [ecx + eax*2], dx
mov dword [esp + 0x10], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x406b48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xc
ret
push 0x80070057
call fcn.004010b0
int3