joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4471fb
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x4a0d15
call fcn.0043fcf6
mov esi, dword [ebp + 8]
cmp esi, dword [0x4f1634]
jne 0x447219
xor eax, eax
jmp 0x44737e
and dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x18], ecx
xor ebx, ebx
or edi, 0xffffffff
test ebx, ebx
jne 0x44723c
cmp dword [0x4f162c], ebx
je 0x44733e
push 2
pop edi
jmp 0x447256
cmp ebx, 1
jne 0x44733e
mov eax, esi
call fcn.00447197
test al, al
je 0x44733e
xor edi, edi
and dword [ebp - 0x10], 0
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x20], edi
call fcn.004471b9
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
push eax
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, edi
jmp 0x447301
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x44728a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push dword [esi]
push eax
call dword [sym.imp.advapi32.dll_RegQueryValueExW]
cmp dword [ebp - 0x18], 2
mov edi, eax
jae 0x4472b6
cmp dword [ebp - 0x1c], 1
je 0x4472b3
cmp dword [ebp - 0x1c], 2
jne 0x4472b6
push 2
pop edi
mov eax, edi
call fcn.004469e8
test eax, eax
je 0x44731e
push 0x1c0496
xor edi, edi
push edi
call fcn.00486ea5
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp - 0x10]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x4f1640
mov dword [eax + 0x4b4638], edi
call fcn.00486ea5
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push edi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
call fcn.00446aa7
mov edi, eax
test edi, edi
je 0x44727e
jmp 0x44732f
push dword [ebp - 0x10]
mov ecx, 0x4f1640
call fcn.00486ea5
test edi, edi
je 0x44734a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.004471da
mov ecx, dword [ebp - 0x18]
inc ebx
cmp ebx, 2
jl 0x447224
jmp 0x447359
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.004471da
mov ecx, dword [ebp - 0x18]
test edi, edi
jne 0x447374
cmp dword [ebp - 0x1c], 2
je 0x44736c
mov al, byte [esi + 0xc]
and al, 0xf
cmp al, 2
jne 0x44737c
push ecx
call fcn.00486ea5
jmp 0x44737a
push esi
call fcn.00486ea5
mov ecx, eax
mov eax, ecx
call fcn.0043fdce
ret 4
Function at 0x44742a
Capabilities:
Delete registry key

Disassembly:
push 4
mov eax, 0x4a0d38
call fcn.0043fcf6
mov esi, dword [ebp + 8]
cmp esi, dword [0x4f1634]
jne 0x44744b
mov eax, 0xa0
jmp 0x447514
mov eax, dword [esi + 8]
test byte [eax + 6], 0xf
jne 0x447441
xor ebx, ebx
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x10], ebx
call fcn.004471b9
movzx eax, word [esi + 0xc]
shr eax, 1
push ebx
and eax, 0x10
push eax
mov dword [ebp - 4], ebx
push ebx
jmp 0x4474da
mov eax, dword [esi + 8]
push dword [eax]
mov ebx, dword [ebp - 0x10]
push dword [ebx]
call dword [sym.imp.advapi32.dll_RegDeleteKeyW]
mov edi, eax
call fcn.004469e8
test eax, eax
je 0x4474f1
push 0x1c04c6
xor edi, edi
push edi
call fcn.00486ea5
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
and eax, 0xf
imul eax, eax, 0xc
push ebx
mov ecx, 0x4f1640
mov dword [eax + 0x4b4638], edi
call fcn.00486ea5
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x10], edi
call fcn.004471da
lea ecx, [ebp + 0xb]
call fcn.004471b9
movzx eax, word [esi + 0xc]
shr eax, 1
push edi
and eax, 0x10
push eax
mov dword [ebp - 4], edi
push edi
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 8]
push dword [eax + 8]
call fcn.00446aa7
mov edi, eax
test edi, edi
je 0x447472
jmp 0x44750a
push ebx
mov ebx, 0x4f1640
mov ecx, ebx
call fcn.00486ea5
push 0
push dword [esi + 8]
mov ecx, ebx
call fcn.00486ea5
lea ecx, [ebp + 0xb]
call fcn.004471da
mov eax, edi
call fcn.0043fdce
ret 4
Function at 0x46bdcb
Capabilities:
Delete file

Disassembly:
push 0xb8
mov eax, 0x4a32d6
call fcn.0043fd5f
mov dword [ebp - 0x50], ecx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], esi
test eax, eax
je 0x46bf88
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.0046b123
push esi
lea eax, [ebp - 0xc4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0046b2d6
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x64], edi
mov ebx, dword [ebp - 0xc0]
mov edi, dword [ebx]
mov byte [ebp - 4], 2
jmp 0x46be91
lea eax, [edi + 8]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0046d86a
cmp byte [ebp - 0x30], 0
mov byte [ebp - 4], 3
jne 0x46be52
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x46be49
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.kernel32.dll_DeleteFileW]
jmp 0x46be83
mov esi, dword [ebp - 0x94]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x98]
call fcn.00486ea5
cmp dword [ebp - 0x5c], esi
jne 0x46be83
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x46be7c
lea eax, [ebp - 0x2c]
push eax
call fcn.00486ea5
pop ecx
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 2
call fcn.0046d8a4
mov edi, dword [edi]
cmp edi, ebx
jne 0x46be27
mov edi, dword [ebp - 0x94]
mov esi, dword [edi]
cmp esi, edi
je 0x46bf20
mov ebx, dword [ebp - 0x50]
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x34]
call fcn.0046ca27
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0xc4]
mov byte [ebp - 4], 4
call fcn.00486ea5
mov eax, dword [ebp - 0x50]
cmp eax, dword [ebp - 0xc0]
jne 0x46beec
mov eax, dword [ebp - 0x18]
mov cl, byte [eax + 0x1c]
movzx ecx, cl
add eax, 0xc
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
call fcn.00486ea5
jmp 0x46bf0e
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x18]
push dword [ebp + 0x10]
add eax, 0x28
push eax
lea eax, [ecx + 0xc]
movzx ecx, byte [ecx + 0x1c]
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
mov ecx, ebx
call fcn.0046bf90
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.0046caef
mov esi, dword [esi]
cmp esi, edi
jne 0x46bea4
mov esi, dword [ebp - 0x58]
push esi
lea eax, [ebp - 0x3c]
push eax
call fcn.0046b123
push eax
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 5
call fcn.00486ea5
lea ecx, [ebp - 0x3c]
call fcn.0046c7ab
cmp dword [ebp - 0x90], 0
jne 0x46bf66
push esi
call fcn.00486ea5
mov eax, dword [ebp - 0x54]
cmp dword [eax + 0x14], 8
jb 0x46bf5f
mov eax, dword [eax]
push eax
call fcn.00486ea5
pop ecx
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 1
call fcn.00486ea5
lea ecx, [ebp - 0xc4]
call fcn.0046d670
lea ecx, [ebp - 0x98]
call fcn.0046c7ab
call fcn.0043fde2
ret 0x10
Function at 0x4726c9
Capabilities:
Receive http response

Disassembly:
push 0x40
mov eax, 0x4a3fb4
call fcn.0043fcf6
mov edi, ecx
cmp byte [edi + 0x24], 0
je 0x4726f0
mov eax, dword [ebp + 8]
mov edx, dword [edi + 0x3c]
mov ecx, dword [edi + 0x40]
mov dword [eax], edx
mov dword [eax + 4], ecx
jmp 0x47287a
cmp byte [edi + 0x15], 0
jne 0x472708
mov eax, dword [ebp + 8]
and dword [eax + 4], 0
mov dword [eax], 6
jmp 0x47287a
push dword [edi + 0x2c]
lea ecx, [ebp - 0x14]
push dword [edi + 0x28]
push ecx
lea ecx, [edi + 0x28]
call fcn.00486ea5
xor esi, esi
mov dword [edi + 0x38], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov dword [ebp - 4], esi
mov ebx, esi
lea eax, [edi + 0x4c]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], esi
push dword [eax]
call dword [sym.imp.kernel32.dll_AcquireSRWLockShared]
xor eax, eax
lea ecx, [ebp - 0x2c]
inc eax
lock xadd dword [ecx], eax
cmp dword [edi + 8], 0
jne 0x472756
push 6
pop esi
jmp 0x472795
lea eax, [ebp - 0x10]
push eax
push dword [edi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
setne al
test al, al
jne 0x472795
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00486ea5
mov esi, dword [eax]
jmp 0x472795
lea ecx, [ebp - 0x2c]
or eax, 0xffffffff
lock xadd dword [ecx], eax
mov eax, dword [ebp - 0x30]
push dword [eax]
call dword [sym.imp.kernel32.dll_ReleaseSRWLockShared]
cmp dword [ebp - 0x2c], 0
ja 0x472780
test esi, esi
jne 0x472854
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x4c]
test eax, eax
je 0x47283f
add eax, ebx
push eax
call fcn.00486ea5
and dword [ebp - 0x14], esi
and dword [ebp - 0x38], esi
lea eax, [edi + 0x4c]
mov dword [ebp - 0x3c], eax
push dword [eax]
call dword [sym.imp.kernel32.dll_AcquireSRWLockShared]
xor eax, eax
lea ecx, [ebp - 0x38]
inc eax
lock xadd dword [ecx], eax
cmp dword [edi + 8], esi
jne 0x4727e1
push 6
pop esi
jmp 0x47282d
mov eax, dword [ebp - 0x4c]
lea ecx, [ebp - 0x14]
push ecx
push dword [ebp - 0x10]
add eax, ebx
push eax
push dword [edi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
setne al
test al, al
je 0x472804
xor esi, esi
jmp 0x47282d
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00486ea5
mov esi, dword [eax]
jmp 0x47282d
lea ecx, [ebp - 0x38]
or eax, 0xffffffff
lock xadd dword [ecx], eax
mov eax, dword [ebp - 0x3c]
push dword [eax]
call dword [sym.imp.kernel32.dll_ReleaseSRWLockShared]
cmp dword [ebp - 0x38], 0
ja 0x472818
test esi, esi
jne 0x472854
add ebx, dword [ebp - 0x14]
jmp 0x47272d
push ebx
call fcn.00486ea5
lea eax, [ebp - 0x4c]
push eax
lea ecx, [edi + 0x28]
call fcn.00486ea5
mov dword [edi + 0x38], ebx
or dword [ebp - 4], 0xffffffff
mov byte [edi + 0x24], 1
and dword [edi + 0x40], 0
mov dword [edi + 0x3c], esi
mov ecx, esi
mov esi, dword [ebp + 8]
mov dword [esi], ecx
mov ecx, dword [edi + 0x40]
mov dword [esi + 4], ecx
lea ecx, [ebp - 0x4c]
call fcn.0046c995
mov eax, esi
call fcn.0043fdce
ret 4
Function at 0x4795fa
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
sub esp, 0x1c
test byte [0x4f2e00], 0x20
push esi
push edi
mov esi, ecx
je 0x47963b
push dword [ebx + 0xc]
push dword [ebx + 8]
push 0x42fb38
push dword [0x4f2e0c]
push dword [0x4f2e08]
call fcn.00486ea5
push 0x1c135e
call fcn.00486ea5
lea eax, [esi + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ebp - 4], eax
mov eax, ecx
shr eax, 0xc
dec eax
shl eax, 0xc
xor eax, ecx
mov edi, ecx
and eax, 0x7f000
xor ecx, eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], ecx
push ebx
mov esi, dword [ebp - 4]
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
lock cmpxchg8b qword [esi]
pop ebx
mov ecx, eax
cmp ecx, edi
jne 0x479650
cmp edx, dword [ebp - 0xc]
jne 0x479650
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0xc
Function at 0x48312b
Capabilities:
Encode data using xor

Disassembly:
push esi
lea esi, [ecx + 0x10]
mov edx, dword [esi]
mov eax, edx
and eax, 0xffffc000
add eax, 0x4000
xor eax, edx
and eax, 0xfffc000
mov ecx, edx
xor edx, eax
mov eax, ecx
lock cmpxchg dword [esi], edx
mov edx, eax
cmp edx, ecx
jne 0x483131
pop esi
ret

Function at 0x486ea5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x486eb4
pop dword [ebp - 0x10]
mov eax, 0x94afafa5
add eax, 0x6b98bf0f
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0xfb418d9a
add dword [ebp - 0x20], 0x5310b7b1
mov dword [ebp - 0x1c], 0xe87c3e4f
add dword [ebp - 0x1c], 0x49b70df6
mov dword [ebp - 0x18], 0xcb043c0e
add dword [ebp - 0x18], 0x81480820
mov dword [ebp - 0x14], 0x87d544d4
sub dword [ebp - 0x14], 0x87d544d4
lea eax, [ebp - 0x20]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x22a9c55c
sub dword [ebp - 0x20], 0xae375c06
mov dword [ebp - 0x1c], 0x71e7bc4a
add dword [ebp - 0x1c], 0xcf84a52b
mov dword [ebp - 0x18], 0x98d49392
sub dword [ebp - 0x18], 0x35652726
mov dword [ebp - 0x14], 0x1656011e
add dword [ebp - 0x14], 0xe9a9fee2
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x51721
push 0
call eax
mov ecx, 0x428e
xor ebx, ebx
add ebx, eax
mov esi, 0x1ac741b2
add esi, 0xe588e24e
add esi, dword [ebp - 0x10]
mov edi, 0xb1bfff5a
add dword [ebp - 0xc], ebx
mov edx, dword [esi]
sub dword [ebp - 8], ecx
sub edx, edi
xor dword [ebp - 8], ecx
mov dword [ebx], edx
xor dword [ebp - 8], esi
add ebx, 4
add esi, 0xb07330ce
add esi, 0x4f8ccf36
loop 0x486fc2
add eax, 0x346b5f0
sub eax, 0x345b8e5
xor ebx, ebx
add ebx, eax
add eax, 0x82a567f7
sub eax, 0x82a567f2
mov ecx, 0x81538011
sub ecx, 0x81138011
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x48b9ee
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x4a51bd
call fcn.0043fd29
mov esi, dword [ebp + 8]
test esi, esi
je 0x48ba91
mov edi, dword [ebp + 0xc]
test edi, edi
jle 0x48ba91
xor eax, eax
mov word [esi], ax
cmp edi, 0x104
jl 0x48ba91
push edi
push esi
push dword [ebp + 0x10]
xor ebx, ebx
mov ecx, 0x4f2eb0
mov dword [ebp - 4], ebx
call fcn.0048bb02
test eax, eax
je 0x48ba96
cmp eax, 2
jne 0x48ba41
mov eax, 0x80004005
jmp 0x48ba96
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
cmp dword [ebp + 0x14], ebx
je 0x48ba52
or eax, 0x8000
push esi
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov ebx, eax
test ebx, ebx
jns 0x48ba67
mov eax, ebx
jmp 0x48ba96
push edi
push esi
call fcn.00486ea5
push esi
push dword [ebp + 0x10]
mov ecx, 0x4f2eb0
mov dword [ebp - 4], 2
call fcn.0048bab7
jmp 0x48ba63
mov eax, 0x80070057
call fcn.0043fdce
ret

Function at 0x49563b
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x4a56d7
call fcn.0043fd5f
mov eax, dword [ebp + 8]
push 1
xor esi, esi
push esi
push 0x80
push 2
push esi
push esi
push 0xc0000000
push eax
call dword [0x43b7bc]
mov edi, eax
cmp edi, 0xffffffff
je 0x495722
push esi
lea eax, [ebp - 0x38]
push eax
push 2
lea eax, [ebp - 0x30]
push eax
push edi
mov word [ebp - 0x30], 0xfeff
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x495695
mov eax, 0x80004005
jmp 0x495724
mov dword [ebp - 0x34], esi
push 0x43a948
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], esi
call fcn.00486ea5
push esi
mov esi, dword [ebp - 0x34]
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.OLEAUT32.dll_SysAllocStringByteLen]
push eax
push esi
push edi
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
jne 0x4956d1
test esi, esi
je 0x49568b
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x49568b
push edi
call dword [sym.imp.kernel32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
and dword [ebp - 0x1c], 0
xor eax, eax
push 0x43a9c0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00486ea5
lea eax, [ebp - 0x2c]
push eax
push 2
call dword [fcn.0043b7c0]
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00486ea5
test esi, esi
je 0x495722
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
xor eax, eax
call fcn.0043fde2
ret 4
Function at 0x409690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40969f
pop dword [ebp - 0x14]
mov eax, 0x5e9b5be7
sub eax, 0x5e5ac548
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x2ae56c2c
sub dword [ebp - 0x24], 0xdc9326e1
mov dword [ebp - 0x20], 0xfbfdfc71
add dword [ebp - 0x20], 0x36354fd4
mov dword [ebp - 0x1c], 0x75e37cf8
sub dword [ebp - 0x1c], 0x299738ca
mov dword [ebp - 0x18], 0x59d6f88e
add dword [ebp - 0x18], 0xa6290772
lea eax, [ebp - 0x24]
push eax
mov eax, 0xd826ff71
sub eax, 0xd7e5bee1
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xd8eba4cb
sub dword [ebp - 0x24], 0x64793b75
mov dword [ebp - 0x20], 0xecf01c2
sub dword [ebp - 0x20], 0xcd62a04d
mov dword [ebp - 0x1c], 0xcbb4461
add dword [ebp - 0x1c], 0x56b4280b
mov dword [ebp - 0x18], 0x2c90d8c4
sub dword [ebp - 0x18], 0x2c90d8c4
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xbd297aff
sub eax, 0xbce83ac3
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3ba99
push 0
call eax
mov ecx, 0x6caded10
sub ecx, 0x6cada409
mov esi, eax
mov edi, 0x6ee0ddf3
sub edi, 0x6e9f1df3
add edi, dword [ebp - 0x14]
mov ebx, 0xb58fcfc7
mov edx, dword [edi]
add dword [ebp - 4], ebx
xor edx, ebx
xor dword [ebp - 8], 0xfa0115ad
mov dword [esi], edx
add dword [ebp - 0x10], 0xc4ef3728
add esi, 4
add edi, 0xb66ddc33
sub edi, 0xb66ddc2f
loop 0x4097bb
add eax, 0x116ef
xor ebx, ebx
add ebx, eax
add eax, 0x2e75af3a
sub eax, 0x2e75af35
mov ecx, 0x400000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret

Function at 0x410b90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 4
mov esi, ecx
call main
pop ecx
xor ecx, ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x410bac
mov dword [eax], ecx
jmp 0x410bae
mov eax, ecx
push ecx
push ecx
push esi
push 0x410c20
push ecx
push ecx
mov dword [esi + 0x10], eax
call dword [sym.imp.kernel32.dll_CreateThread]
mov ecx, dword [esi + 0x10]
pop esi
mov dword [ecx], eax
leave
ret
Function at 0x4d9720
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4d9780
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x58a554]
test esi, esi
jle 0x4d98a0
mov eax, dword [0x58a558]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x4d97b4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4d9837
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4d97a0
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x4d98c7
mov eax, dword [0x58a558]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x58a558]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4d98a7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4d9830
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4d9840
add dword [0x58a554], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x58a558]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4d9830
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4d97be
mov eax, dword [0x58a558]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop
Function at 0x4d9d80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x58a570
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x58a568]
sub esp, 4
test ebx, ebx
je 0x4d9dd5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4d9dce
test esi, esi
je 0x4d9dce
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4d9db0
mov dword [esp], 0x58a570
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4da100
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4da125
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4da130
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4da125
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test esi, esi
je 0x4da178
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4da16e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4da17a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4da160
xor eax, eax
pop ebx
pop esi
ret
Function at 0x401c55
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41d018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
mov edi, ecx
or esi, 0xffffffff
call fcn.00405a30
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push ebx
push 0x41ba3c
push dword [edi + 0x20]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x401d52
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x214]
call fcn.00402589
lea eax, [ebp - 0x214]
push eax
lea ecx, [edi + 0x10]
call fcn.004023a8
lea ecx, [ebp - 0x214]
call fcn.00402953
push 0x41b910
push 0x66
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x401d52
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401d52
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x401d52
xor eax, eax
push eax
push eax
push 4
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401d52
push esi
push ebx
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, eax
mov ecx, edi
call fcn.00401fe4
pop ecx
test eax, eax
jne 0x401d48
push ebx
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
jne 0x401d52
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or esi, 0xffffffff
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040570e
leave
ret

Function at 0x402c77
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov esi, ecx
call fcn.00402d0f
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x402d07
push edi
push edi
push edi
push 2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
je 0x402d00
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edx, eax
mov dword [esi + 0xc], edx
test edx, edx
je 0x402cf7
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
push 0x1c
lea ecx, [ebp - 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x402cf7
mov ecx, dword [ebp - 0x10]
mov al, 1
mov dword [esi + 0x10], ecx
jmp 0x402d09
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00402d0f
xor al, al
pop edi
pop esi
leave
ret 4